emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: HTML export and blogging to blogger.com


From: Giovanni Ridolfi
Subject: Re: [Orgmode] Re: HTML export and blogging to blogger.com
Date: Tue, 16 Nov 2010 10:50:06 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (windows-nt)

Samuel Wales <address@hidden> writes:

> I found this in the manual.  Does anybody know whether this is
> relevant to the problem?
>
>      \n:        turn on/off line-break-preservation 
> (DOES NOT WORK)

Samuel, it, actually, works for me:
Org-mode version 7.3 commit-fee2c2c8dab57bf11ad34526f1364154f57fb020
GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1

when I export the *whole* file.   

if: \n:t
----------------------------------file -------------
#+TITLE:     pippo.org
#+DATE:      2010-11-16 mar
#+DESCRIPTION: 
#+KEYWORDS: 
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:t \n:t @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 
path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:   
#+LINK_HOME: 
#+XSLT: 
* hello 
LONG LINE 
Loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong

let's brake line HERE
this should be in new line: LONG LINE 
Loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong
 not so
--------------------------------------------------

HTML output is:

<html xmlns="http://www.w3.org/1999/xhtml";
lang="en" xml:lang="en">

<div id="outline-container-1" class="outline-2">
<h2 id="sec-1"><span class="section-number-2">1</span> hello </h2>
<div class="outline-text-2" id="text-1">

<p> #+OPTIONS:   H:3 num:t toc:t \n:t @:t ::t |:t ^:t -:t f:t *:t <:t </p>
<p>LONG LINE 
Loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong<br/>
</p>
<p><br/>
let's brake line HERE<br/>
this should be in new line: LONG LINE 
Loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong
 not so<br/>
</p>
<p><br/>
</p></div>
</div>
</div>
</div>
</body>
</html>


if \n:nil

<html xmlns="http://www.w3.org/1999/xhtml";
lang="en" xml:lang="en">

<div id="outline-container-1" class="outline-2">
<h2 id="sec-1"><span class="section-number-2">1</span> hello </h2>
<div class="outline-text-2" id="text-1">

<p>#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t </p>

<p>LONG LINE 
Loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong
</p>
<p>
let's brake line HERE
this should be in new line: LONG LINE 
Loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong
 not so
</p>
</div>
</div>
</div>
</body>
</html>

It works for me, also for a subtree
----------------
#+OPTIONS:   H:3 num:t toc:t \n:t @:t ::t |:t ^:t -:t f:t *:t <:t
** now a subtree

brake it brake it
newline 
---------------- HTML --------
<h1 class="title">now a subtree</h1>

<p>brake it brake it<br/>
newline<br/>

cheers,
Giovanni



reply via email to

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