Edgewall Software

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#13117 closed enhancement (fixed)

Add clear parameter to the BR macro — at Version 4

Reported by: Christian Boos Owned by:
Priority: normal Milestone: 1.3.4
Component: wiki system Version: 1.3dev
Severity: normal Keywords:
Cc: Branch: log:cboos.git@t13117-wikimacro-BR-clear
Release Notes:
API Changes:

The BR macro takes an optional "clear" parameters, which adds the corresponding CSS styling (i.e. [[br(clear:left)]] generates the HTML <br style="clear: left"/>, same thing for "right" or "clear"). Note that [[br(clear)]] alone stands for [[br(clear:both)]].

Internal Changes:

Description (last modified by Christian Boos)

I had to write [[html(<br style="clear: left"/>)]] once too many…

Such HTML snippets are very useful at times but are a bit painful to write, not to mention it feels like a hack…

Being able to use the BR "macro" for that feels much more natural:




[[br(clear)]] alone would stand for [[br(clear:both)]].

I think [[br]] is probably not much used since the introduction of the WikiCreole equivalent \\, but as it's still there in the code and documented in WikiFormatting, why not making it more useful?

See log:cboos.git@t13117-wikimacro-BR-clear.

Change History (4)

comment:1 by Christian Boos, 4 years ago

Description: modified (diff)

comment:2 by Ryan J Ollos, 4 years ago

Looks good to me.

comment:3 by Christian Boos, 4 years ago

Branch: log:cboos.git@t13117-wikimacro-BR-clear

comment:4 by Christian Boos, 4 years ago

API Changes: modified (diff)
Resolution: fixed
Status: newclosed

Committed in r16877.

Note: See TracTickets for help on using tickets.