[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: forcing the end of
From: |
Łukasz Stelmach |
Subject: |
[Orgmode] Re: forcing the end of |
Date: |
Sun, 21 Mar 2010 17:33:52 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Łukasz Stelmach <address@hidden> writes:
> I publish some materials for my students. For example test questions. As
> you might expect I'd like to keep them secret until the test starts. So
> I write this:
--8<---------------cut here---------------start------------->8---
> ** "OpenOffice Writer" ( [2010-03-21 nie] ) :ATTACH:
> #+HTML: <?php if(time() - mktime(10, 50, 00, 3, 28, 2010) > 0) { ?>
>
> The questions will be availble on Sunday at 10:50.
>
> #+HTML: <?php } else { ?>
>
> + How to write a poem?
> + How to create a graph?
> + How?
>
> #+HTML: <?php } ?>
--8<---------------cut here---------------end--------------->8---
> What I get is roughly this:
--8<---------------cut here---------------start------------->8---
> How?
>
> <?php } ?>
> </li> <!-- these two should be -->
> </ul> <!-- above the "?php }?" tag -->
> </div>
> </div>
> </div>
--8<---------------cut here---------------end--------------->8---
> Which makes the HTML code that comes out of PHP invalid as because of
> those dangling </li></ul> (</div>s seem to be OK here).
>
> How? How to force org-mode to close this plain list befor the php
> closing curly bracket?
OK. I've found a hack. I put three empty lines between the last "How?"
and the <?php } ?> in the middle one I put <U200B> (ZERO WIDTH SPACE)
which induces closing of the list and creation of an empty paragraph
<p></p>. Yet I'd like to see something cleaner.
PS. <U00A0> NO-BREAK SPACE works too and it's better because Emacs
fontifies it. Shouldn't be exported as a HTML entity ?
--
Miłego dnia,
Łukasz Stelmach