Loading...
 
Features / Usability

Features / Usability


How to avoid <br /> line breaks?

posts: 13 Denmark

It would seem that every line break in the source text of a wiki page is turned into a <br /> HTML line break. I find this is a problem, beacause the output HTML has far too much vertical spacing. This seems to me to be the wrong thing to do, as

  1. I cannot avoid spacing above section titles, definition list entries and other stuff that must start in the first column, and
  2. it makes it impossible to format the input text nicely (for the sake of authors).

Questions:

  1. Is there a way to avoid all these <br /> tags?
  2. Why not let n line breaks in the source text produce n-1 <br /> tags in the output? This way, authors can still force added vertical space, but can also avoid it.
    Alternatively, add special syntax for producing <br /> tags, and let 2 line breaks produce a new paragraph (<p>).
posts: 957

I don't understand what you mean.
I only found those extra tags when copy pasting html code into html pages in Tiki. Do you mena that?
If you write a wiki page in the wiki module, even using html format (in the wiki module, I mean), everything has been fine for a loooong time with tiki.
I don't know it I got your problem, sorry. Can you explain better?
(or wait until some other user understands better you comment; I couldn't, sorry)

posts: 13 Denmark

> I don't understand what you mean.
> I don't know it I got your problem, sorry. Can you explain better?

Take a look at UserPagepanic. Look at the HTML source code for the page, search for "definition1". Do you see the <br /> tag?

Look at the result in your browser: a definition list with large gaping holes between each entry (at least in my Mozilla on linux).

Look at the Wiki source code. How can you change this to remove the <br /> tag?

This is not a CSS formatting problem. Putting <br /> tags here is logically wrong; they should only be used WITHIN a paragraph if you want to cut a line of the paragraph short.
Paragraphs should be delimited by <p>...</p>.

posts: 4656 Japan

>...
> This is not a CSS formatting problem. Putting <br /> tags here is logically wrong; they should only be used WITHIN a paragraph if you want to cut a line of the paragraph short.
> Paragraphs should be delimited by <p>...</p>.

The break tag seems to be a byproduct of the wiki parser. I understand there's a new wiki parser on the way, but don't know if it'll fix this type of problem. I suggest you submit a bug report at dev.tikiwiki.org. I tried to work around the excess-space problem with CSS also, but ended up with text on top of text in some cases, etc.

-- Gary

posts: 957

Hi panic, I see now.
Sorry, I'm not skilled enough.
Gary suggested already (again! :-) what I would have said myslef: post a bug to dev.tw.o.
Cheers,
Xavi


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting