From: "Łukasz Stelmach" <lukasz.stelmach@iem.pw.edu.pl>
To: emacs-orgmode@gnu.org
Subject: Re: forcing the end of
Date: Sun, 21 Mar 2010 17:33:52 +0100 [thread overview]
Message-ID: <87iq8p63db.fsf@kotik.lan> (raw)
In-Reply-To: 87r5nd645z.fsf@kotik.lan
Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> 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
prev parent reply other threads:[~2010-03-21 16:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-21 16:16 forcing the end of Łukasz Stelmach
2010-03-21 16:33 ` Łukasz Stelmach [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iq8p63db.fsf@kotik.lan \
--to=lukasz.stelmach@iem.pw.edu.pl \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).