mimetic / corona-textrender

A pure-Lua text rendering module for Corona SDK which can handle basic HTML, fonts, font-styles, and even basic font metrics. (Takes over from corona-styled-textwrap)
24 stars 7 forks source link

Text without wrapping tags (e.g. <p>) do not automatically get a new line after. #2

Open mimetic opened 9 years ago

mimetic commented 9 years ago

If your HTML does not wrap text in

or

    or
  1. or
    , then the text will wrap, but there will be no carriage return to begin the line. That means the previous line will draw over the text. Or, the text will draw over the next paragraph, depending on whether the code starts

    by moving down, or adds a new line after

    .

    <p>Additional dark spots are found along the lateral surfaces of the species. In adult specimens, the pectoral fins are broadly triangular.</p>
    This is "Normal" text.