Losing formatting
  • When I paste in content from booki that contains preformatted program/math text, I lose the indents and line breaks. Thus, for example,
       (8 9 10 11 12 13+3)-3
    8 9 10 11 12 13
       (8 9 10 11 12 13-3)+3
    8 9 10 11 12 13
    (without the extra space between lines imposed by this edit widget) becomes
     (8 9 10 11 12 13+3)-3 8 9 10 11 12 13 (8 9 10 11 12 13-3)+3 8 9 10 11 12 13

    Specifically, no-break spaces ( &nbsp; ) disappear, while line breaks ( <br> ) are converted to spaces.

    The same thing can happen when I insert the formatting manually and save a chapter.

    Adam Hyde suggests that this is a TinyMCE problem, not inherently a Booktype problem. I cannot tell the difference from the other end of a Web connection.

    A possible workaround for the line break problem would be to redefine the style Formatted to remove extra space between lines. Adding another style for indented code would be a possible, but quite painful, workaround for part of the nbsp problem. However, it would do nothing for multiple spaces within code lines. For example,
      1   2   3   
    100 200 300

    again without the blank space between lines.


  • 4 Comments sorted by
  • Vote Up0Vote Down adamadam
    Posts: 88Member
    booki or booktype?



    On Thu, May 17, 2012 at 3:44 PM, Edward Mokurai Cherlin
    wrote:
    > When I paste in content from booki that contains preformatted program/math
    > text, I lose the indents and line breaks. Thus, for example,
    >
    >    (8 9 10 11 12 13+3)-3
    > 8 9 10 11 12 13
    >    (8 9 10 11 12 13-3)+3
    > 8 9 10 11 12 13
    >
    > (without the extra space between lines imposed by this edit widget) becomes
    >
    >  (8 9 10 11 12 13+3)-3 8 9 10 11 12 13 (8 9 10 11 12 13-3)+3 8 9 10 11 12 13
    >
    > Specifically, no-break spaces (   ) disappear, while line breaks (
    > ) are converted to spaces.
    >
    > The same thing can happen when I insert the formatting manually and save a
    > chapter.
    >
    > Adam Hyde suggests that this is a TinyMCE problem, not inherently a Booktype
    > problem. I cannot tell the difference from the other end of a Web
    > connection.
    >
    > A possible workaround for the line break problem would be to redefine the
    > style Formatted to remove extra space between lines. Adding another style
    > for indented code would be a possible, but quite painful, workaround for
    > part of the nbsp problem. However, it would do nothing for multiple spaces
    > within code lines. For example,
    >
    > 1 2 3
    > 100 200 300
    >
    > again without the blank space between lines.
    >
    >
  • If you use "Preformatted" as style, this works fine.

    On Thu, May 17, 2012 at 3:44 PM, Edward Mokurai Cherlin
    wrote:
    > When I paste in content from booki that contains preformatted program/math
    > text, I lose the indents and line breaks. Thus, for example,
    >
    >    (8 9 10 11 12 13+3)-3
    > 8 9 10 11 12 13
    >    (8 9 10 11 12 13-3)+3
    > 8 9 10 11 12 13
    >
    > (without the extra space between lines imposed by this edit widget) becomes
    >
    >  (8 9 10 11 12 13+3)-3 8 9 10 11 12 13 (8 9 10 11 12 13-3)+3 8 9 10 11 12 13
    >
    > Specifically, no-break spaces (   ) disappear, while line breaks (
    > ) are converted to spaces.
    >
    > The same thing can happen when I insert the formatting manually and save a
    > chapter.
    >
    > Adam Hyde suggests that this is a TinyMCE problem, not inherently a Booktype
    > problem. I cannot tell the difference from the other end of a Web
    > connection.
    >
    > A possible workaround for the line break problem would be to redefine the
    > style Formatted to remove extra space between lines. Adding another style
    > for indented code would be a possible, but quite painful, workaround for
    > part of the nbsp problem. However, it would do nothing for multiple spaces
    > within code lines. For example,
    >
    > 1 2 3
    > 100 200 300
    >
    > again without the blank space between lines.
    >
    >
  • Vote Up0Vote Down adamadam
    Posts: 88Member
     can you attach a screenshot ed so we know what editor you are refering to. the old booki had xinha and the main difference between that and booktype is that booktype now uses tinymce


    adam
  • Pasting formatted text from booki (where I have not been able to generate a PDF) into booktype.
    Will paste screenshot tomorrow.