On 29 May 2014 03:49, george thomas <[email protected]> wrote: > > On Tuesday, April 1, 2014 8:09:00 AM UTC-4, Lex Trotman wrote: >> >> On 1 April 2014 20:51, <[email protected]> wrote: >> > Hi, >> > I am facing the same issue using asciidoc 8.6.9 >> >> It doesn't appear to be similar. The problem referred to above is >> non-encoding, not incorrect encoding. >> >> > It is not a python issue, when I encode the same image in python using >> > base64.b64encode I get the correct data on Windows, Cygwin and Ubuntu >> > Linux. >> > >> >> Again please provide more useful information. >> >> You are saying that the image is wrongly encoded, please provide that >> information, the asciidoc that uses it isn't much help. >> >> Also please provide the Python versions. >> >> Cheers >> Lex >> > > I encountered the originally reported problem a few days ago with asciidoc > 8.6.9 with Python 2.7.6 on 64-bit Windows 7 SP1. The problem arises from a > change that was submitted to fix a problem with MIME types for SVG when > using data-uri. > > The thread for the problem with MIME types for SVG: > https://groups.google.com/forum/#!topic/asciidoc/29-vg4-T4CA > The accepted change for this problem: http://bit.ly/1pycQRy > > The call to print fouls things up on Windows: The output of print is > displayed on the terminal and the process of generating the content for > data-uri hangs. What is clearly expected is that the mime header created by > the call to print and the base64-encoded image data be written to a > temporary file before being written to the output document as the content of > the img element's source attribute. > > For what it's worth, when I used Ctrl+C on the hung process on Windows I saw > the following traceback: > > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "C:\Python27\lib\base64.py", line 288, in encode > s = input.read(MAXBINSIZE) > KeyboardInterrupt > > I wish I knew enough to recommend an alternative that would work on both > Linux and Windows.
Did you try the \x22 suggestion? Cheers Lex > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/asciidoc. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/asciidoc. For more options, visit https://groups.google.com/d/optout.
