Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#993 closed enhancement (wontfix)

Allow rulers of diverse thickness, from 1 to 7 px, à la MoinMoin

Reported by: Juanma Barranquero Owned by: Jonas Borgström
Priority: low Milestone:
Component: wiki system Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

On the same vein that #988, another MoinMoin-inspired patch for added WikiFormatting: allow rulers of diverse thickness , from 1 to 7px. (I'm not suggesting TracWiki should adopt every single wiki-formatting rule out there, but these two are simple to use and simple to implement; a bit more flexibility in tables would be nice, too ;)

  • htdocs/css/trac.css

     
    1717h3 { font-size: 14px; margin: 1.5em 0 .5em }
    18 hr { border: none;  border-top: 1px solid #ccb; margin: 2em 0 }
    1918address { font-style: normal }
     
    2120
     21hr { border: none;  border-top: 1px solid #ccb; margin: 2em 0 }
     22hr.hr1 { border-top: 1px solid #ccb }
     23hr.hr2 { border-top: 2px solid #ccb }
     24hr.hr3 { border-top: 3px solid #ccb }
     25hr.hr4 { border-top: 4px solid #ccb }
     26hr.hr5 { border-top: 5px solid #ccb }
     27hr.hr6 { border-top: 6px solid #ccb }
     28hr.hr7 { border-top: 7px solid #ccb }
     29
    2230.underline { text-decoration: underline }
  • trac/WikiFormatter.py

     
    556556                self.close_table()
    557                 self.out.write('<hr />' + os.linesep)
     557                self.out.write('<hr class="hr%s"/>' % min(7, len(line) - 3) + os.linesep)
    558558                continue
  • trac/tests/wiki-tests.txt

     
    190190</p>
     191==============================
     192-
     193--
     194---
     195----
     196-----
     197------
     198-------
     199--------
     200---------
     201----------
     202-----------
     203------------------------------
     204<p>
     205-
     206--
     207---
     208</p>
     209<hr class="hr1"/>
     210<hr class="hr2"/>
     211<hr class="hr3"/>
     212<hr class="hr4"/>
     213<hr class="hr5"/>
     214<hr class="hr6"/>
     215<hr class="hr7"/>
     216<hr class="hr7"/>

Attachments (0)

Change History (5)

comment:1 by anonymous, 19 years ago

Summary: Allow rulers from diverse thickness, from 1 to 7 px, à la MoinMoinAllow rulers of diverse thickness, from 1 to 7 px, à la MoinMoin

comment:2 by Christopher Lenz, 19 years ago

Resolution: wontfix
Status: newclosed

I personally don't see the value in this. Thick <hr>s are ugly, and the thickness isn't backed by a semantic differentiation in the markup, i.e. the effect is purely presentational. HTML doesn't have any provision for <hr>s of different "importance". Compare this to different heading levels, where the difference is backed by the document structure.

This change would also effect existing wiki text where the number of dashes did not make a difference, and now suddenly would. Fewer than four dashes are currently not rendered as <hr> at all, with this change they suddenly would be.

comment:3 by Juanma Barranquero, 19 years ago

I personally don't see the value in this.

Fair enough.

Fewer than four dashes are currently not rendered as <hr> at all, with this change they suddenly would be.

Only if I made an error…

comment:4 by Christopher Lenz, 19 years ago

Only if I made an error...

You're right, I misread the patch. Sorry.

comment:5 by Matthew Good, 19 years ago

Milestone: 0.9

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.