Edit Book: Wrong indent in beautify

Bug #1297532 reported by arspr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Try to beautify the next text (real example from a real world book):

<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
  <title>Portada</title>
  <style title="override_css" type="text/css">
  @page {
    padding: 0;
    margin: 0;
    }
  body {
    text-align: center;
    padding: 0;
    margin: 0;
  }
  div {
    margin: 0;
    padding: 0;
  }
  </style>
  <!--<link rel="stylesheet" type="application/vnd.adobe-page-template+xml" href="css/page-template.xpgt"/>-->
</head>

<body style="oeb-column-number: 1;">

  <div class="body">
      <img alt="cover" src="images/cover.jpg" style="padding: 0; margin: 0;" title="cover"/>
</div>

</body>

</html>

Look at the <div class="body"> and its not-indented </div> at the end of the file. !?!?

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.