Vincent van Ravesteijn
5846e0eb7b
Compile fix for r36670.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36672 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-03 02:42:25 +00:00
Richard Heck
a81bf77314
Change the escaping mechanism for XHTML output and so allow a fix for
...
bug #7061 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36455 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-24 15:27:36 +00:00
Richard Heck
0940cd77d4
Better way of doing these checks, suggested by Enrico.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36356 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 22:17:53 +00:00
Richard Heck
4bf281106b
Be more careful here about isalpha and isalnum. Per Enrico's suggestion,
...
we first do a range test, then check the status. I think this is right
in both cases.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36351 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 21:19:01 +00:00
Richard Heck
680b6e78e4
Fix bug #6953 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35673 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-17 18:46:35 +00:00
Pavel Sanda
eaf1e371c7
Revert 35400 for the time being, crashes here.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35402 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 20:32:58 +00:00
Richard Heck
c4c210cc6e
Minor simplification.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35400 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 17:33:15 +00:00
Richard Heck
ca9ff9e430
Allow alignment customization in environments.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35399 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 17:32:05 +00:00
Richard Heck
3c08472b0c
Allow alignment customization in environments.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35398 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 17:29:51 +00:00
Richard Heck
64241a6d6d
Add XHTMLStream::operator<<(char). Failure to have it was causing things
...
like:
xs << ' ';
to send an int.
32, Pavel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35397 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 17:19:29 +00:00
Richard Heck
b743c226ca
Handle forced alignments, at least in ordinary paragraphs.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35395 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 14:42:50 +00:00
Richard Heck
a5e4f310fe
Add alignment to default CSS.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35392 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 14:06:36 +00:00
Richard Heck
4528307de6
Fix HTMLLabelFirst handling in non-list environments. Simplify code,
...
while we're at it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35380 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 12:08:00 +00:00
Pavel Sanda
a5cb2afc1b
Next headers
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33976 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 19:38:05 +00:00
Richard Heck
3794f7c753
Use cached label.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33136 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-21 18:55:02 +00:00
Richard Heck
b18bfcf3cc
Kill a (public) magic boolean.
...
The point of this will become clear shortly. I hope.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33133 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-21 18:46:20 +00:00
Richard Heck
0568e46eea
Proper output of counters in appendix.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33121 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-20 21:20:30 +00:00
Richard Heck
caa4e94bf0
Get rid of some magic booleans in updateLabels() and related routines.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33110 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-20 19:42:12 +00:00
Richard Heck
cf086092e2
Add a FIXME.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33102 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-19 22:51:20 +00:00
Richard Heck
4600e6c0b8
Remove half a comment?
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33101 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-19 22:29:52 +00:00
Richard Heck
3e654186d2
Move the StartTag, EndTag, and CompTag classes into the html namespace.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33099 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-19 22:08:04 +00:00
Richard Heck
59c04f7096
The fortoc argument I introduced earlier should all along have gone into
...
OutputParams. So now it is there.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33044 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-14 22:24:43 +00:00
Richard Heck
22b1ef0295
Don't access empty iterators.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33033 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-14 17:10:40 +00:00
Richard Heck
2e349ff103
This sorts the index entries and writes each one's tags together, like:
...
AMS Math 1, 2, 3
where the numbers are links.
The only thing left to do here is to parse the index entries so that we
can do something with "this ! that" and similar things.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33001 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-12 21:06:55 +00:00
Richard Heck
5214a9271c
Unnecessary whitespace is bad in XHTML.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32888 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-08 18:13:07 +00:00
Richard Heck
c216adead9
Whitespace.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32804 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-06 20:13:07 +00:00
Richard Heck
175973629b
Move into proper scope.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32803 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-06 20:12:54 +00:00
Richard Heck
673858b182
These add extra whitespace where we don't want it.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32529 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-14 16:45:11 +00:00
Richard Heck
f162067a61
Now how do you think that happened?
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32463 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 20:11:46 +00:00
Richard Heck
ffe73b795b
Initial work for InsetTOC. This does actually write a TOC, but without
...
any links. That is the next step.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32459 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 18:30:48 +00:00
Vincent van Ravesteijn
e6d1759340
CitationUI and InsetMathChar:
...
squeeze warnings
output_xhtml:
fix whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32380 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-07 01:28:14 +00:00
Richard Heck
5e440ef668
Only step counters we have.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32292 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-03 19:35:31 +00:00
Richard Heck
8df174c446
I seem to have been testing for the same thing twice, more or less.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32266 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-30 23:26:10 +00:00
Richard Heck
c5738e5af6
Restore XHTML output for InsetLabel and InsetRef. There are a couple
...
other fixes in here, too.
There is an issue here which I guess I'll deal with later, namely, that
the name attribute for <a> is unavailable in XHTML 1.1, which is what we
need for MathML support, at least in Firefox. Firefox will deal with it
if it's there, but the document won't validate. I'll figure out what to
do about this later.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32226 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-28 21:37:47 +00:00
Richard Heck
508ee6560c
Auto-escape attributes.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32208 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-25 22:18:47 +00:00
Vincent van Ravesteijn
ab19ef36cc
Initialize nextraw_. The first character of the outputted html file was represented as an integer.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32144 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-22 00:46:23 +00:00
Richard Heck
344859e4df
Don't escape the deferred stuff.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32135 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-21 23:15:52 +00:00
Richard Heck
603b94966a
InsetQuote works again.
...
Is this simple stream modifier thing OK?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32112 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 23:29:07 +00:00
Richard Heck
ed7172226c
This inner tag thing turns out to be a bad idea, since so few things are
...
allowed to go inside <span>. Probably we don't need it anyway.
The User's Guide now exports as valid XHTML 1.1, according to the XHTML
validator at w3.org. Of course, in the present state of the code, a lot
of insets aren't being exported at all, since they've been disabled. So
there is work to do. But this is a serious start now.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32108 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 22:58:32 +00:00
Richard Heck
d62c5cf02e
Sorry, I didn't mean to commit all that. Let's try again.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32105 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 22:47:22 +00:00
Richard Heck
b8743dd2ed
The default tag for an InsetLayout should depend upon MultiPar.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32104 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 22:41:31 +00:00
Richard Heck
fa2f219d92
In non-MultiPar insets, we do not want to output paragraphs at all.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32103 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 22:31:52 +00:00
Richard Heck
5815084ff0
Fix output of LATEX_LIST_ENVIRONMENT and remove obsolete comment.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32101 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 22:13:44 +00:00
Richard Heck
a8ba7cc722
Whoops.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32099 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 21:56:08 +00:00
Richard Heck
c5651b5e44
Two things here:
...
(i) We don't need (at the moment, anyway) to step list counters, since
HTML will handle those for us.
(ii) Output errors as comments to the HTML file so we can see where they
happen.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32097 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 21:50:02 +00:00
Richard Heck
6967440797
Bug fix for font output.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32093 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 21:04:40 +00:00
Richard Heck
95a8e89e04
Rather than do checks for empty tags elsewhere, accept them and ignore them.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32092 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 20:39:07 +00:00
Richard Heck
021f51e19b
Fix typo.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32091 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 20:35:19 +00:00
Richard Heck
502dc7ca52
Inset::xhtml(XHTMLStream &, ...)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32089 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 20:22:04 +00:00
Richard Heck
ad132e2e99
Restore basic paragraph output for XHTML. The insets are all disabled still.
...
Much of the point of this is to allow us properly to handle what LyX does as:
<em>This is <strong>bold and italic</em> and now just bold.</strong>
We output:
<em>This is <strong>bold and italic</strong></em><strong> and now just bold.</strong>
which is valid.
Note how much easier this would have been if emphasis and boldness were insets
rather than ranges. ;-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32086 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 18:24:19 +00:00