From e09badc82087f94861db164d3995abcbe3e60616 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 31 May 2008 12:58:40 +0200 Subject: Fix po4a: Really treat line-based Markdown markup as such. --- Locale/Po4a/Text.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Locale') diff --git a/Locale/Po4a/Text.pm b/Locale/Po4a/Text.pm index 77a5cbe..eb8ded9 100644 --- a/Locale/Po4a/Text.pm +++ b/Locale/Po4a/Text.pm @@ -175,11 +175,11 @@ sub parse { $paragraph=""; $wrapped_mode = 1; } elsif ($markdown and - ( $line =~ m/^#/)) { - # Found Markdown headline - $wrapped_mode = 0; - $paragraph .= $line."\n"; + ( $line =~ /^#/ # headline + or $line =~ /^\s*\[\[\!\S[^\]]*\]\]\s*$/)) { # sole macro + # Found Markdown markup that should be preserved as a single line do_paragraph($self,$paragraph,$wrapped_mode); + do_paragraph($self,$line."\n",0); $paragraph=""; $wrapped_mode = 1; } elsif ($markdown and -- cgit v1.2.3 >Unnamed repository; edit this file 'description' to name the repository.Jonas Smedegaard
summaryrefslogtreecommitdiff
path: root/tags/6a/95/COL103-W563A4425AFD7EA80430582B5970@phx.gbl
diff options
context:
space:
mode:
Diffstat (limited to 'tags/6a/95/COL103-W563A4425AFD7EA80430582B5970@phx.gbl')
-rw-r--r--tags/6a/95/COL103-W563A4425AFD7EA80430582B5970@phx.gbl/sugar0
-rw-r--r--tags/6a/95/COL103-W563A4425AFD7EA80430582B5970@phx.gbl/unread0
2 files changed, 0 insertions, 0 deletions