[Cdd-commits] r968 - cdd/trunk/webtools
CDD Subversion Commit
noreply at alioth.debian.org
Fri Jul 11 14:39:19 UTC 2008
Author: tille
Date: Fri Jul 11 14:39:19 2008
New Revision: 968
Modified:
cdd/trunk/webtools/cddtasktools.py
Log:
Leave out ugly newline after verbatim mode
Modified: cdd/trunk/webtools/cddtasktools.py
==============================================================================
--- cdd/trunk/webtools/cddtasktools.py (original)
+++ cdd/trunk/webtools/cddtasktools.py Fri Jul 11 14:39:19 2008
@@ -127,7 +127,8 @@
for line in lines[1:]:
# Replace paragraph separators by <br />
if re.compile("^\s?\.\s*$").search(line):
- LongDesc += "<br />\n"
+ if pre == 0: # Do not add an extra newline in verbatim mode once this will finish
+ LongDesc += "<br />\n"
else:
# Add <pre> tag if indentation > 2 spaces
if pre == 1 and re.compile("^\s[^\s]").search(line):
More information about the Cdd-commits
mailing list