Verbatim, lisp and blockquote

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Verbatim, lisp and blockquote

Phillip Lord-2



I've been trying to move my website over to muse generation and
cascading style sheets (I already use some of muse!).

For one page, I need to incorporate some externally generated HTML
(produced by bibtex2html). The HTML is "headless" -- it's just body
code so can be just dropped in.

My thought was to do...


<lisp>
   (with-temp-file
        (insert-file-contents "file.txt")
        (concat "<verbatim>\n" (string-buffer) "\n</verbatim"))
<lisp>


This almost works but not quite.

<td>
S.&nbsp;Bechhofer, R.&nbsp;Stevens, and <strong>P.&nbsp;Lord</strong>.
  Ontology Driven Dynamic Linking of Biology Resources.
  <em>Journal of Web Semantics</em>, 2005.
  Accepted for Publication.<br />
[ <a href="./publications-bib.html#bechhofer05:gohse:jws">bib</a> ]

</td>


This comes out in the final version as....

<td>
S.&nbsp;Bechhofer, R.&nbsp;Stevens, and <strong>P.&nbsp;Lord</strong>.

<blockquote>
<p class="quoted">Ontology Driven Dynamic Linking of Biology Resources.
<em>Journal of Web Semantics</em>, 2005.
Accepted for Publication.<br />
[ <a href="./publications-bib.html#bechhofer05:gohse:jws">bib</a> ]</p>
</blockquote>

</td>


So the blockquote markup is being interpreted, even though it is
inside of the verbatim.

As the original HTML is generated, I can't change this easily -- my
only current idea is to use perl to hack the original HTML and remove
the indent -- this should work, but it's somewhat unsatisfying.

I think that this is actually a bug; of course, it might be intended
behaviour which unintended consequences.

Suggestions welcome!

Thanks

Phil




_______________________________________________
emacs-wiki-discuss mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss
Reply | Threaded
Open this post in threaded view
|

Re: Verbatim, lisp and blockquote

Stéfan van der Walt
On Tue, Sep 19, 2006 at 03:02:40PM +0100, Phillip Lord wrote:
> I've been trying to move my website over to muse generation and
> cascading style sheets (I already use some of muse!).
>
> For one page, I need to incorporate some externally generated HTML
> (produced by bibtex2html). The HTML is "headless" -- it's just body
> code so can be just dropped in.

The include tag should do what you want, i.e.

<include file="file.html" markup="nil">

Regards
Stéfan


_______________________________________________
emacs-wiki-discuss mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss
Reply | Threaded
Open this post in threaded view
|

Re: Verbatim, lisp and blockquote

Phillip Lord-2
>>>>> "SvdW" == Stefan van der Walt <[hidden email]> writes:

  SvdW> On Tue, Sep 19, 2006 at 03:02:40PM +0100, Phillip Lord wrote:
  >> I've been trying to move my website over to muse generation and
  >> cascading style sheets (I already use some of muse!).
  >>
  >> For one page, I need to incorporate some externally generated
  >> HTML (produced by bibtex2html). The HTML is "headless" -- it's
  >> just body code so can be just dropped in.

  SvdW> The include tag should do what you want, i.e.

  SvdW> <include file="file.html" markup="nil">


Ah. Okay, didn't know that had gone in. Will try.

Thanks

Phil


_______________________________________________
emacs-wiki-discuss mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss