Quote:
Originally Posted by kovidgoyal
@arspr: If you have modified text in an editor, all entities are automatically converted to unicode before checking, which is why you will not get message about them. Close and re-open the editor and you will see that.
|
Ooops I think I found the strange issue behind my "trouble".
Grab the attached test book. It just contains two html files which are actually the same:
Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<p>&<>—²</p>
</body>
</html>
Open the book and perform no edit. Run Book Check and you get the "Named entities present" warning twice (once for each file). It doesn't matter if you open or close the editors on each of the files, no entities are ever substituted and therefore you always get the warning twice.
Perform any kind of edit in one of the files. Then that file is automatically updated and its entities removed, (but XML ones). It doesn't matter if you open and close the editor or if you don't: when you run Book Check that file warning is gone because the entities have been internally removed.
So,
entities are automatically removed, (but XML ones), BUT ONLY IF AND WHEN you make some kind of edit on the file. Is this behaviour intentional? Or should all the entities be removed on the opening of the book even with no edit in the HTML files?
I don't have a formed opinion on it. And probably the current behaviour is the good one, but just in case there's some kind of malfunction you didn't think of, I make this post.
More over,
if the current behaviour is fine, could you consider automatically refreshing the editor so no open/close cycle was needed? I mean, even when I'm seeing
— there's no real
— anymore...