When adding code to a post, typing
Text hereresults in two blank lines between the text and the code block. Removing the extra line requires deleting a line break, writing:
<code>
#!/usr/bin/perl -w
use strict;
</code>
Text hereThis can get to be a nuisance. And it doesn't read cleanly in the raw text. So, in a separate system I maintain that also supports code tags, I had the formatting engine recognize when the code tags were alone on a line. Then, the formatter would remove the blank line for for me (by deleting the \n after open tag tag). Works like a charm.
<code>#!/usr/bin/perl -w
use strict;
</code>
I wonder if something like that would help here. Does the extra blank line you get when <code> appears on a line by itself bother anyone besides me?
If there's a concensus that removing the extra blank line automagically would be a Good Thing, I'll take a shot at a patch.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: <code> tags and extra blank lines
by PodMaster (Abbot) on Jan 08, 2003 at 22:23 UTC | |
|
Re: <code> tags and extra blank lines
by sauoq (Abbot) on Jan 08, 2003 at 22:59 UTC | |
|
Re: <code> tags and extra blank lines
by seattlejohn (Deacon) on Jan 09, 2003 at 00:54 UTC | |
|
Re: <code> tags and extra blank lines
by bbfu (Curate) on Jan 09, 2003 at 04:00 UTC | |
|
Re: <code> tags and extra blank lines
by dvergin (Monsignor) on Jan 09, 2003 at 01:31 UTC | |
|
Re: <code> tags and extra blank lines
by vek (Prior) on Jan 09, 2003 at 06:05 UTC | |
|
Re: <code> tags and extra blank lines
by dws (Chancellor) on Jan 10, 2003 at 06:31 UTC | |
|
Re: <code> tags and extra blank lines
by Acolyte (Hermit) on Jan 09, 2003 at 18:34 UTC | |
|
Re: <code> tags and extra blank lines
by dbush (Deacon) on Jan 10, 2003 at 17:56 UTC |