[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Blank lines in literal html

From: Wanrong Lin
Subject: [Orgmode] Re: Blank lines in literal html
Date: Wed, 05 Dec 2007 14:31:20 -0500
User-agent: Thunderbird (Windows/20070728)

Finally, I decided to learn some elisp debugging techniques and as a practice, it seems I found the bug and fixed it with this patch (against org.el in 5.16b)

@@ -24437,7 +24437,7 @@
          (when (re-search-backward
             "\\(<p>\\)\\([ \t\r\n]*\\)\\=" (- (point) 100) t)
        (setq par (match-string 1))
-        (replace-match "\\2\n"))
+        (replace-match ""))
          (insert line "\n")
          (while (and lines
              (get-text-property 0 'org-protected (car lines)))

I am not completely sure whether this is the right fix, but so far the output looks OK to me.

Can Carsten take a look of it and see whether it is OK to check this into the next release? Thanks a lot.


Wanrong Lin wrote:

Sometimes I use "htmlize" to convert a section of my buffer into html and then insert it into my org file with "#+BEGIN_HTML" and "#+END_HTML". One thing I noticed is the blank lines in the original text is "amplified". For example, I have a section like this in my org file:

Line 1

Line 2 with a blank line in between

When I export the above to a html file, there are actaully 3 blank lines between my "Line 1" and "Line 2".

Is the above a bug or I mis-configured something? Thank you very much.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]