Loading...
 
Skip to main content

Make Wiki parser NOT insert <br /> tags for each newline

Status
Closed
Subject
Make Wiki parser NOT insert <br /> tags for each newline
Category
  • Usability
Feature
Wiki (page view, edit, history, rename, etc)
Resolution status
Out of Date
Submitted by
Arne
Volunteered to solve
bertrand Gugger
Lastmod by
bertrand Gugger
Rating
(0)
Description

The wiki parser inserts <br /> tags for each newline in the source text.
This produces a lot of vertical spacing in the rendered text, and is impossible to remove before, e.g. terms in definition lists, headings etc., whose wiki source text must start in the first column. Using the <br /> tag between paragraphs of text is also logically incorrect; <p>...</p> should be used for that.
Suggested solutions:

  1. Let 1 newline produce no HTML tags in output,
    Let 2 newlines produce a new paragraph (<p>) in output
    Devise new wiki syntax to let authors manually insert vertical spacing
  2. Let n newlines produce n-1 <br /> tags in output.

The latter solution seems simple, but does strictly speaking not produce the logically correct HTML output where paragraphs are delimited by <p>...</p> tags.
NOTE: This is not a CSS styling problem!

Importance
7
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
323
Created
Tuesday 26 July, 2005 07:33:22 UTC
by Unknown
LastModif
Tuesday 11 October, 2005 14:06:04 UTC


Show PHP error messages