[Trac-tickets] [The Trac Project] #2201: Extra newline at end of code block when using silvercity formatter

The Trac Project noreply at edgewall.com
Mon Oct 10 10:40:32 CDT 2005


#2201: Extra newline at end of code block when using silvercity formatter
--------------------------------+-------------------------------------------
 Reporter:  dcreager at gmail.com  |       Owner:  jonas
     Type:  defect              |      Status:  new  
 Priority:  normal              |   Milestone:       
Component:  general             |     Version:  0.9b2
 Severity:  minor               |   Keywords:  silvercity          |  
--------------------------------+-------------------------------------------
 When formatting a block of code using the !SilverCity formatter, the
 newline that separates the last line of code from the closing }}} tag is
 formatted and displayed when it probably shouldn't.  For instance,

 {{{
 {{{
 #!c
 int main(int argc, char** argv)
 }}}
 }}}

 renders as

 {{{
 #!c
 int main(int argc, char** argv)
 }}}

 Note that not every !SilverCity renderer shows this problem.  (It might
 only be the C-based syntaxes, I haven't check them all.)  For instance,
 Python works:

 {{{
 {{{
 #!python
 class Test:
     def __init__(self):
         print "Hello World"
 if __name__ == '__main__':
    Test()
 }}}
 }}}

 {{{
 #!python
 class Test:
     def __init__(self):
         print "Hello World"
 if __name__ == '__main__':
    Test()
 }}}

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/2201>
The Trac Project <http://trac.edgewall.com/>


More information about the Trac-Tickets mailing list