Forum Bugs

Prince 7.0b1 enters into an apparently endless loop

Jellby
I've found some files that take too long to convert to be reasonable. From one of them (the Project Gutenberg edition of The Brothers Karamazov), I could create this test file:

<?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" xml:lang="en">
<head>
<style type="text/css">
body {
  margin: 4ex 10%;
  text-align: justify;
}
span {
  position: absolute;
  left: 1%;
}
</style>
</head>
<body>

<p>The old man fairly fluttered with joy, as though nothing more comforting
could have been said to him. In his delight he seized <span>[pg 154]</span>
Alyosha's hand and pressed it warmly to his heart. Tears positively glittered in
his eyes.</p>

</body>
</html>


If I remove almost anything in the CSS styles, it converts instantly, but as it is, it remains some minutes at 100% CPU load until I kill the process.
mikeday
Thanks, that's a great test document for a bug we're currently looking at, and will hopefully fix soon. For now, disabling justification solves the problem.
mikeday
This bug has been fixed in Prince 7.0, out now. Thanks for the help in tracking it down! :)