From 1f42ca0df93ed31b2a0701b66af7cd3b7df511e7 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sat, 21 Nov 2009 23:22:23 +0000 Subject: [PATCH] Comment. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32137 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetText.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp index 1dcf068a40..7da34f699d 100644 --- a/src/insets/InsetText.cpp +++ b/src/insets/InsetText.cpp @@ -501,6 +501,19 @@ docstring InsetText::xhtml(XHTMLStream & xs, OutputParams const & runparams) con } +// FIXME XHTML +// There are cases where we may need to close open fonts and such +// and then re-open them when we are done. This would be the case, e.g., +// if we were otherwise about to write: +// word
footnote text.
emph
+// The problem isn't so much that the footnote text will get emphasized: +// we can handle that with CSS. The problem is that this is invalid XHTML. +// One solution would be to make the footnote , but the problem is +// completely general, and so we'd have to make absolutely everything into +// span. What I think will work is to check if we're about to write "div" and, +// if so, try to close fonts, etc. +// There are probably limits to how well we can do here, though, and we will +// have to rely upon users not putting footnotes inside noun-type insets. docstring InsetText::insetAsXHTML(XHTMLStream & xs, OutputParams const & runparams, XHTMLOptions opts) const { -- 2.39.2