emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Łukasz Stelmach" <lukasz.stelmach@iem.pw.edu.pl>
To: emacs-orgmode@gnu.org
Subject: forcing the end of
Date: Sun, 21 Mar 2010 17:16:40 +0100	[thread overview]
Message-ID: <87r5nd645z.fsf@kotik.lan> (raw)

Hello.

It's been said couple of times that there is no way in org mode to jump
back on the higher level of the outline tree without creating a new node
on that level. After thinking for a while I've agreed that there is no
need for this. There isn't such things in books. However I start to miss
it and I'll give an example of how I'd use it.

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---
<div id="outline-container-1.3" class="outline-3">
<h3 id="sec-1.3"><span class="section-number-3">1.3</span> "OpenOffice Writer" ( <span class="timestamp-wrapper"> <span class="timestamp">2010-03-21 nie</span></span> )</h3>
<div class="outline-text-3" id="text-1.3">


<?php if(time() - mktime(10, 50, 00, 3, 28, 2010) > 0) { ?>
<p>
The questions will be availble on Sunday at 10:50.
</p>

<?php } else { ?>
<ul>
<li>
How to write a poem?
</li>
<li>
How to create a graph?
</li>
<li>
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?

PS. If I add a node below the list some of its cloing </div>s go below
the <?php } ?> too.
-- 
Miłego dnia,
Łukasz Stelmach

             reply	other threads:[~2010-03-21 16:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-21 16:16 Łukasz Stelmach [this message]
2010-03-21 16:33 ` forcing the end of Łukasz Stelmach

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=87r5nd645z.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).