Modify ↓
#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
17 17 h3 { font-size: 14px; margin: 1.5em 0 .5em } 18 hr { border: none; border-top: 1px solid #ccb; margin: 2em 0 }19 18 address { font-style: normal } … … 21 20 21 hr { border: none; border-top: 1px solid #ccb; margin: 2em 0 } 22 hr.hr1 { border-top: 1px solid #ccb } 23 hr.hr2 { border-top: 2px solid #ccb } 24 hr.hr3 { border-top: 3px solid #ccb } 25 hr.hr4 { border-top: 4px solid #ccb } 26 hr.hr5 { border-top: 5px solid #ccb } 27 hr.hr6 { border-top: 6px solid #ccb } 28 hr.hr7 { border-top: 7px solid #ccb } 29 22 30 .underline { text-decoration: underline } -
trac/WikiFormatter.py
556 556 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) 558 558 continue -
trac/tests/wiki-tests.txt
190 190 </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 , 20 years ago
Summary: | Allow rulers from diverse thickness, from 1 to 7 px, à la MoinMoin → Allow rulers of diverse thickness, from 1 to 7 px, à la MoinMoin |
---|
comment:2 by , 20 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:3 by , 20 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:5 by , 19 years ago
Milestone: | 0.9 |
---|
Note:
See TracTickets
for help on using tickets.
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.