emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-export [with respect to lists] to HTML
@ 2010-02-17  7:03 Livin Stephen Sharma
  2010-02-17 13:30 ` Sebastian Rose
  2010-02-17 14:27 ` Mark Elston
  0 siblings, 2 replies; 10+ messages in thread
From: Livin Stephen Sharma @ 2010-02-17  7:03 UTC (permalink / raw)
  To: emacs-org-mode-help gnu gnu


[-- Attachment #1.1: Type: text/plain, Size: 1467 bytes --]


I'm pasting content from an org file, and the HTML generated from it below [also attaching files - in case Mail garbles the text here].
The problem I see is that list-numbering isn't quite correct in the HTML.

I intended/expected 'Sound of Silence' to be list-item '2' since that is what it shows up as in the org-file [even after 'C-c C-c'].

Any pointers on what I'm doing wrong? Or is hand-tweaking the HTML unavoidable?
This is on org-mode 6.31a in emacs 23




----------------------------------------
 org file content:
----------------------------------------
#+TITLE: When I think back on all the crap I learned in high school...
#+OPTIONS: toc:2 ^:nil author:nil 
#+STARTUP: content
#+STARTUP: hidestars
#+FILETAGS: PERSONAL

* Simonisms
 1. Kodachrome
	#+BEGIN_EXAMPLE
	When I think back on all the crap I learned in high school, It's a wonder I can think at all
	#+END_EXAMPLE
 2. Sound of silence
	Ten thousand people













----------------------------------------
 generated HTML content:
----------------------------------------
When I think back on all the crap I learned in high school…

Table of Contents

1 Simonisms
1 Simonisms

Kodachrome
When I think back on all the crap I learned in high school, It's a wonder I can think at all
Sound of silence Ten thousand people
Date: 2010-02-17 12:27:00 IST

HTML generated by org-mode 6.31a in emacs 23




Livin Stephen Sharma




[-- Attachment #1.2.1: Type: text/html, Size: 6013 bytes --]

[-- Attachment #1.2.2: test.html --]
[-- Type: text/html, Size: 3189 bytes --]

[-- Attachment #1.2.3: Type: text/html, Size: 2412 bytes --]

[-- Attachment #1.2.4: test.org --]
[-- Type: application/octet-stream, Size: 362 bytes --]

#+TITLE: When I think back on all the crap I learned in high school...
#+OPTIONS: toc:2 ^:nil author:nil
#+STARTUP: content
#+STARTUP: hidestars
#+FILETAGS: PERSONAL

* Simonisms
 1. Kodachrome
	#+BEGIN_EXAMPLE
	When I think back on all the crap I learned in high school, It's a wonder I can think at all
	#+END_EXAMPLE
 2. Sound of silence
	Ten thousand people

[-- Attachment #1.2.5: Type: text/html, Size: 2416 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: org-export [with respect to lists] to HTML
  2010-02-17  7:03 org-export [with respect to lists] to HTML Livin Stephen Sharma
@ 2010-02-17 13:30 ` Sebastian Rose
  2010-02-17 14:02   ` Livin Stephen Sharma
  2010-02-17 14:27 ` Mark Elston
  1 sibling, 1 reply; 10+ messages in thread
From: Sebastian Rose @ 2010-02-17 13:30 UTC (permalink / raw)
  To: Livin Stephen Sharma; +Cc: emacs-org-mode-help gnu gnu

Livin Stephen Sharma <livin.stephen@gmail.com> writes:
>
> * Simonisms
>  1. Kodachrome
> #+BEGIN_EXAMPLE
> When I think back on all the crap I learned in high school, It's a wonder I can
> think at all
> #+END_EXAMPLE
>  2. Sound of silence
> Ten thousand people

Hi Stephan,


list are made from indentation. The `#+begin_example' (did you mean
`#+begin_quote'?) must be indented to be considered a part of the first
list item. This way, it is considered the end of the list.


It should be:

* Simonisms
  1. Kodachrome
     #+BEGIN_EXAMPLE
      When I think back on all the crap I learned in high school, It's a
      wonder I can think at all
     #+END_EXAMPLE
  2. Sound of silence


HTH

  Sebastian

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: org-export [with respect to lists] to HTML
  2010-02-17 13:30 ` Sebastian Rose
@ 2010-02-17 14:02   ` Livin Stephen Sharma
  2010-02-17 14:31     ` Sebastian Rose
  0 siblings, 1 reply; 10+ messages in thread
From: Livin Stephen Sharma @ 2010-02-17 14:02 UTC (permalink / raw)
  To: Sebastian Rose; +Cc: emacs-org-mode-help gnu gnu


[-- Attachment #1.1: Type: text/plain, Size: 1115 bytes --]

Sebastian,
In the 'test.org' file **attached** in my previous mail, indentation was as
you had suggested [you may verify or test/use that as a 'minimal example' to
confirm]. I think text pasted into the email itself [under the title 'org
content'] may have lost some white-space.


Thanks for the BEGIN_QUOTE suggestion.
Here's a funny thing I see:
If I use *begin_quote*, the exported html has list-items numbered *correctly
*. However,
If I use *begin_example*, the numbering gets messed up again!

Attaching slightly modified version of org file and exported-html [ *C-c C-e
b* ]






On 17 February 2010 19:00, Sebastian Rose <sebastian_rose@gmx.de> wrote:

> Hi Stephan,
>
>
> list are made from indentation. The `#+begin_example' (did you mean
> `#+begin_quote'?) must be indented to be considered a part of the first
> list item. This way, it is considered the end of the list.
>
>
> It should be:
>
> * Simonisms
>  1. Kodachrome
>     #+BEGIN_EXAMPLE
>      When I think back on all the crap I learned in high school, It's a
>      wonder I can think at all
>     #+END_EXAMPLE
>  2. Sound of silence
>
>

[-- Attachment #1.2: Type: text/html, Size: 2099 bytes --]

[-- Attachment #2: test.html --]
[-- Type: text/html, Size: 3726 bytes --]

[-- Attachment #3: test.org --]
[-- Type: application/octet-stream, Size: 615 bytes --]

#+TITLE: When I think back on all the crap I learned in high school...
#+OPTIONS: toc:2 ^:nil author:nil
#+STARTUP: content
#+STARTUP: hidestars
#+FILETAGS: PERSONAL

* Simonisms 'example'
  1. Kodachrome
	 #+BEGIN_EXAMPLE
	 When I think back on all the crap I learned in high school, It's a wonder I can think at all
	 #+END_EXAMPLE
  2. Sound of silence -- *wrong* \\
	 Ten thousand people


* Simonisms 'quote'
  1. Kodachrome
	 #+BEGIN_QUOTE
	 When I think back on all the crap I learned in high school, It's a wonder I can think at all
	 #+END_QUOTE
  2. Sound of silence -- *correct* \\
	 Ten thousand people

[-- Attachment #4: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: org-export [with respect to lists] to HTML
  2010-02-17  7:03 org-export [with respect to lists] to HTML Livin Stephen Sharma
  2010-02-17 13:30 ` Sebastian Rose
@ 2010-02-17 14:27 ` Mark Elston
  2010-02-17 15:23   ` Livin Stephen Sharma
  1 sibling, 1 reply; 10+ messages in thread
From: Mark Elston @ 2010-02-17 14:27 UTC (permalink / raw)
  To: emacs-orgmode

Livin,

When I export your file to html I get proper numbering.  I'm
not sure why you don't.

You are using an older version of org-mode.  I have 6.34 and
it works as expected.

Mark

On 2/16/2010 11:03 PM, Livin Stephen Sharma wrote:
>
> I'm pasting content from an org file, and the HTML generated from it
> below [also attaching files - in case Mail garbles the text here].
> The problem I see is that list-numbering isn't quite correct in the HTML.
>
> I intended/expected 'Sound of Silence' to be list-item '2' since that is
> what it shows up as in the org-file [even after 'C-c C-c'].
>
> Any pointers on what I'm doing wrong? Or is hand-tweaking the HTML
> unavoidable? This is on org-mode 6.31a in emacs 23
>
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: org-export [with respect to lists] to HTML
  2010-02-17 14:02   ` Livin Stephen Sharma
@ 2010-02-17 14:31     ` Sebastian Rose
  0 siblings, 0 replies; 10+ messages in thread
From: Sebastian Rose @ 2010-02-17 14:31 UTC (permalink / raw)
  To: Livin Stephen Sharma; +Cc: emacs-org-mode-help gnu gnu

[-- Attachment #1: Type: text/plain, Size: 1381 bytes --]

OK, I'll try again...

Hi Stephen,


I responded to the wrong mail before, sorry.


Here your testfile works (result attached). Maybe update Org-mode?



Livin Stephen Sharma <livin.stephen@gmail.com> writes:
> Sebastian,
> In the 'test.org' file **attached** in my previous mail, indentation was as
> you had suggested [you may verify or test/use that as a 'minimal example' to
> confirm]. I think text pasted into the email itself [under the title 'org
> content'] may have lost some white-space.
>
>
> Thanks for the BEGIN_QUOTE suggestion.
> Here's a funny thing I see:
> If I use *begin_quote*, the exported html has list-items numbered *correctly
> *. However,
> If I use *begin_example*, the numbering gets messed up again!
>
> Attaching slightly modified version of org file and exported-html [ *C-c C-e
> b* ]
>
>
>
>
>
>
> On 17 February 2010 19:00, Sebastian Rose <sebastian_rose@gmx.de> wrote:
>
>> Hi Stephan,
>>
>>
>> list are made from indentation. The `#+begin_example' (did you mean
>> `#+begin_quote'?) must be indented to be considered a part of the first
>> list item. This way, it is considered the end of the list.
>>
>>
>> It should be:
>>
>> * Simonisms
>>  1. Kodachrome
>>     #+BEGIN_EXAMPLE
>>      When I think back on all the crap I learned in high school, It's a
>>      wonder I can think at all
>>     #+END_EXAMPLE
>>  2. Sound of silence
>>
>>



[-- Attachment #2: test.html --]
[-- Type: text/html, Size: 3739 bytes --]

[-- Attachment #3: Type: text/plain, Size: 14 bytes --]



  Sebasitan

[-- Attachment #4: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: org-export [with respect to lists] to HTML
  2010-02-17 14:27 ` Mark Elston
@ 2010-02-17 15:23   ` Livin Stephen Sharma
  2010-02-17 18:20     ` Mark Elston
  0 siblings, 1 reply; 10+ messages in thread
From: Livin Stephen Sharma @ 2010-02-17 15:23 UTC (permalink / raw)
  To: Mark Elston; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1167 bytes --]

If it works for you, then I can't complain!
Thank you so much... I'll play with the settings, or move to the new
version.



On 17 February 2010 19:57, Mark Elston <m_elston@comcast.net> wrote:

> Livin,
>
> When I export your file to html I get proper numbering.  I'm
> not sure why you don't.
>
> You are using an older version of org-mode.  I have 6.34 and
> it works as expected.
>
> Mark
>
>
> On 2/16/2010 11:03 PM, Livin Stephen Sharma wrote:
>
>>
>> I'm pasting content from an org file, and the HTML generated from it
>> below [also attaching files - in case Mail garbles the text here].
>> The problem I see is that list-numbering isn't quite correct in the HTML.
>>
>> I intended/expected 'Sound of Silence' to be list-item '2' since that is
>> what it shows up as in the org-file [even after 'C-c C-c'].
>>
>> Any pointers on what I'm doing wrong? Or is hand-tweaking the HTML
>> unavoidable? This is on org-mode 6.31a in emacs 23
>>
>>
>>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

[-- Attachment #1.2: Type: text/html, Size: 1857 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: org-export [with respect to lists] to HTML
  2010-02-17 15:23   ` Livin Stephen Sharma
@ 2010-02-17 18:20     ` Mark Elston
  2010-02-18  6:37       ` Livin Stephen Sharma
  0 siblings, 1 reply; 10+ messages in thread
From: Mark Elston @ 2010-02-17 18:20 UTC (permalink / raw)
  To: Livin Stephen Sharma; +Cc: emacs-orgmode

Livin,

On 2/17/2010 7:23 AM, Livin Stephen Sharma wrote:
> If it works for you, then I can't complain!

Well, you *could*, but it would be better to upgrade first...
:)

Mark

> Thank you so much... I'll play with the settings, or move to the new
> version.
>
>
>
> On 17 February 2010 19:57, Mark Elston <m_elston@comcast.net
> <mailto:m_elston@comcast.net>> wrote:
>
>     Livin,
>
>     When I export your file to html I get proper numbering.  I'm
>     not sure why you don't.
>
>     You are using an older version of org-mode.  I have 6.34 and
>     it works as expected.
>
>     Mark
>
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: org-export [with respect to lists] to HTML
  2010-02-17 18:20     ` Mark Elston
@ 2010-02-18  6:37       ` Livin Stephen Sharma
  2010-02-18 11:38         ` Carsten Dominik
  0 siblings, 1 reply; 10+ messages in thread
From: Livin Stephen Sharma @ 2010-02-18  6:37 UTC (permalink / raw)
  To: Mark Elston; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1276 bytes --]

Well, here's the complaint then:
I upgraded to the 'released' version [6.34c], but that did NOT fix the problem for me!

Then I turned off some customizations [selected by *intelligent* guessing!].
Looks like this one makes all the difference:
> (setq org-empty-line-terminates-plain-lists t)


Setting it to 'nil' fixed the exported-list for me.

  Looks like problem [kinda] solved :)


Livin Stephen Sharma
PS: The 'auto-indent' provided by "org-empty-line-terminates-plain-lists" is a nice convenience - but I'll live without it.



On Feb 17, 2010, at 23:50:12 , Mark Elston wrote:

> Livin,
> 
> On 2/17/2010 7:23 AM, Livin Stephen Sharma wrote:
>> If it works for you, then I can't complain!
> 
> Well, you *could*, but it would be better to upgrade first...
> :)
> 
> Mark
> 
>> Thank you so much... I'll play with the settings, or move to the new
>> version.
>> 
>> 
>> 
>> On 17 February 2010 19:57, Mark Elston <m_elston@comcast.net
>> <mailto:m_elston@comcast.net>> wrote:
>> 
>>    Livin,
>> 
>>    When I export your file to html I get proper numbering.  I'm
>>    not sure why you don't.
>> 
>>    You are using an older version of org-mode.  I have 6.34 and
>>    it works as expected.
>> 
>>    Mark
>> 
>> 


[-- Attachment #1.2: Type: text/html, Size: 2767 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: org-export [with respect to lists] to HTML
  2010-02-18  6:37       ` Livin Stephen Sharma
@ 2010-02-18 11:38         ` Carsten Dominik
  2010-02-18 13:01           ` Livin Stephen Sharma
  0 siblings, 1 reply; 10+ messages in thread
From: Carsten Dominik @ 2010-02-18 11:38 UTC (permalink / raw)
  To: Livin Stephen Sharma; +Cc: emacs-orgmode


On Feb 18, 2010, at 7:37 AM, Livin Stephen Sharma wrote:

> Well, here's the complaint then:
> I upgraded to the 'released' version [6.34c], but that did NOT fix  
> the problem for me!
>
> Then I turned off some customizations [selected by *intelligent*  
> guessing!].
> Looks like this one makes all the difference:
>> (setq org-empty-line-terminates-plain-lists t)
>
>
> Setting it to 'nil' fixed the exported-list for me.
>
>   Looks like problem [kinda] solved :)

Still sounds like a bug to me, I'll try to look into it.

>
>
> Livin Stephen Sharma
> PS: The 'auto-indent' provided by "org-empty-line-terminates-plain- 
> lists" is a nice convenience - but I'll live without it.

Can you please explain what you mean here? what auto-indent is  
provided when setting that variable?

Thanks

- Carsten


>
>
>
> On Feb 17, 2010, at 23:50:12 , Mark Elston wrote:
>
>> Livin,
>>
>> On 2/17/2010 7:23 AM, Livin Stephen Sharma wrote:
>>> If it works for you, then I can't complain!
>>
>> Well, you *could*, but it would be better to upgrade first...
>> :)
>>
>> Mark
>>
>>> Thank you so much... I'll play with the settings, or move to the new
>>> version.
>>>
>>>
>>>
>>> On 17 February 2010 19:57, Mark Elston <m_elston@comcast.net
>>> <mailto:m_elston@comcast.net>> wrote:
>>>
>>>    Livin,
>>>
>>>    When I export your file to html I get proper numbering.  I'm
>>>    not sure why you don't.
>>>
>>>    You are using an older version of org-mode.  I have 6.34 and
>>>    it works as expected.
>>>
>>>    Mark
>>>
>>>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: org-export [with respect to lists] to HTML
  2010-02-18 11:38         ` Carsten Dominik
@ 2010-02-18 13:01           ` Livin Stephen Sharma
  0 siblings, 0 replies; 10+ messages in thread
From: Livin Stephen Sharma @ 2010-02-18 13:01 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode


Livin Stephen Sharma



On Feb 18, 2010, at 17:08:00 , Carsten Dominik wrote:

> 
> On Feb 18, 2010, at 7:37 AM, Livin Stephen Sharma wrote:
> 
>> Well, here's the complaint then:
>> I upgraded to the 'released' version [6.34c], but that did NOT fix the problem for me!
>> 
>> Then I turned off some customizations [selected by *intelligent* guessing!].
>> Looks like this one makes all the difference:
>>> (setq org-empty-line-terminates-plain-lists t)
>> 
>> 
>> Setting it to 'nil' fixed the exported-list for me.
>> 
>>  Looks like problem [kinda] solved :)
> 
> Still sounds like a bug to me, I'll try to look into it.


First, since I have your attention... let me take this opportunity to join the multitude of grateful org-mode users in saying: 
"Great piece of work, Carsten and Team!"

Also, thanks for tracking this.


> 
>> 
>> 
>> Livin Stephen Sharma
>> PS: The 'auto-indent' provided by "org-empty-line-terminates-plain-lists" is a nice convenience - but I'll live without it.
> 
> Can you please explain what you mean here? what auto-indent is provided when setting that variable?

Mistake on my part.. please ignore that!



> 
> Thanks
> 
> - Carsten
> 
> 
>> 
>> 
>> 
>> On Feb 17, 2010, at 23:50:12 , Mark Elston wrote:
>> 
>>> Livin,
>>> 
>>> On 2/17/2010 7:23 AM, Livin Stephen Sharma wrote:
>>>> If it works for you, then I can't complain!
>>> 
>>> Well, you *could*, but it would be better to upgrade first...
>>> :)
>>> 
>>> Mark
>>> 
>>>> Thank you so much... I'll play with the settings, or move to the new
>>>> version.
>>>> 
>>>> 
>>>> 
>>>> On 17 February 2010 19:57, Mark Elston <m_elston@comcast.net
>>>> <mailto:m_elston@comcast.net>> wrote:
>>>> 
>>>>   Livin,
>>>> 
>>>>   When I export your file to html I get proper numbering.  I'm
>>>>   not sure why you don't.
>>>> 
>>>>   You are using an older version of org-mode.  I have 6.34 and
>>>>   it works as expected.
>>>> 
>>>>   Mark
>>>> 
>>>> 
>> 
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 
> - Carsten
> 
> 
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-02-18 13:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-17  7:03 org-export [with respect to lists] to HTML Livin Stephen Sharma
2010-02-17 13:30 ` Sebastian Rose
2010-02-17 14:02   ` Livin Stephen Sharma
2010-02-17 14:31     ` Sebastian Rose
2010-02-17 14:27 ` Mark Elston
2010-02-17 15:23   ` Livin Stephen Sharma
2010-02-17 18:20     ` Mark Elston
2010-02-18  6:37       ` Livin Stephen Sharma
2010-02-18 11:38         ` Carsten Dominik
2010-02-18 13:01           ` Livin Stephen Sharma

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).