"Copy As BBCode" incorrect tag nesting

Reproduced on both Scrivener 2.4.1 and 2.5, Mac OS X 10.5.8

Repro:

  1. Open a scrivener document and type in some text. Highlight the text. Apply Bold styling, and then Italic styling. Bold italic
  2. Menu: Edit -> Copy Special -> Copy As BBCode
  3. Paste elsewhere.

Expected result: [ b ][ i ]Bold italic[ /i ][ /b ]
Actual result: [ b ][ i ]Bold italic[ /b ][ /i ]
(minus spaces in tags)

Side note: The exact same highlighted text in my test document, if copied with “Copy As HTML”, returns:
< p style=“margin: 0.0px 0.0px 0.0px 0.0px; text-indent: 18.0px; font: 14.0px Helvetica” >< b >< i >Bold italic< /i >< /b >< /p >
So it appears to be parsing the highlighting correctly, it’s just not nesting the BBCode tags properly.

(This is actually breaking my work on some epub converters on a fanfic site I submit to. :stuck_out_tongue:)

Thanks! It’s on the list.

For ePubs, why not use Scrivener’s export for that format? The BBCode copy command is very limited in what it can express, in terms of formatting.

I (belatedly) appreciate your acknowledgement! Was buying a cross-platform license today and that reminded me to check the forum.

Re your question, I’m not publishing the epubs myself — I’m submitting the story to the site, and they have a built-in epub converter for all submitted stories. The site formatting uses bbcode, so Scrivener’s “copy as” is the best tool I’ve got to work with.