View Single Post
Old 05-05-2019, 10:13 AM   #1
ZioNemo
Enthusiast
ZioNemo began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Mar 2008
Device: HTC-p3000
Exclamation Strange bug editing in BookView

I am unsure if this is the right place to report this kind of bugs.
Please feel free to redirect me as needed.

A minimal example to reproduce the bug is:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!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>
<link href="../Styles/Style0001.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<div class="scene">
<p>Jona era appena uscito che il Sacerdote chiaṃ il suo Apprendista e dette una serie di ordini, poi torṇ a parlare con l’Amuleto.<br/>Poco dopo una piccola processione composta dal Sacerdote...</p>
</div>
</body>
</html>
Together wit the following CSS fragment:
Code:
p:first-child:first-letter {
    float: left;
    font-size: 3em;
    line-height: 1;
    margin-bottom: -0.20em;
    margin-right: 0.05em;
    margin-top: -0.1em;
}
If you try to convert the newline (<br/>) to a proper paragraph (</p><p>) in BookView (i.e: cursor at end of first line, [del], [enter]) result is:
Code:
... con l’Amulet</p>
<p>&nbsp;oPoco...
which does not look right

This does *not* happen without the "drop-caps CSS fragment.
ZioNemo is offline   Reply With Quote