<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/pyexpander/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/pyexpander/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/pyexpander/bugs/</id><updated>2017-12-18T17:05:19.969000Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>#9 codec error from string constant</title><link href="https://sourceforge.net/p/pyexpander/bugs/9/?limit=25#b1c6" rel="alternate"/><published>2017-12-18T17:05:19.969000Z</published><updated>2017-12-18T17:05:19.969000Z</updated><author><name>Glenn Linderman</name><uri>https://sourceforge.net/u/guruglenn/</uri></author><id>https://sourceforge.net58cf1f43d5482face2a46b0fa4c4d8c5b5e9b81b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;As requested per email (that must not have come via the ticket system), here is a command:&lt;/p&gt;
&lt;p&gt;expander3.py balderdash.txt&lt;/p&gt;
&lt;p&gt;And attached file. I had moved one from pyexpander as mentioned above, and thought that any Chinese character would reproduce the problem, but maybe it has to be the right one, or in the right context, but I still recalled which line I'd eventually tracked this down to, and was able to recreate it by pasting that line into the attached text file.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#9 codec error from string constant</title><link href="https://sourceforge.net/p/pyexpander/bugs/9/?limit=25#8c62" rel="alternate"/><published>2017-12-12T02:36:57.385000Z</published><updated>2017-12-12T02:36:57.385000Z</updated><author><name>Glenn Linderman</name><uri>https://sourceforge.net/u/guruglenn/</uri></author><id>https://sourceforge.net38713ddb52bc47ec274689d9be9ef5d5392bf775</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Well, due to the difficulty of finding bugs, because the reports don't tell which macro is failing (in all cases), and the unknown character encoding used that caused this problem, and the limitation of having to have balanced () within macro invocations, I decided to write my own. Trying to use yours gave me some good ideas, some from your documented features, and some from the undocumented issues I encountered and listed. I've got everything working now, so no need to fix this bug except for other people.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#9 codec error from string constant</title><link href="https://sourceforge.net/p/pyexpander/bugs/9/?limit=25#cf09" rel="alternate"/><published>2017-12-11T10:29:33.296000Z</published><updated>2017-12-11T10:29:33.296000Z</updated><author><name>Glenn Linderman</name><uri>https://sourceforge.net/u/guruglenn/</uri></author><id>https://sourceforge.net918ca8967c7c293f3e637330c8f172354eaaa8b3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;stdout was redirected to a file.&lt;br/&gt;
I'm just experimenting with pyexpander... it looks nice, but it was hard to determine where some errors occurred... I had to "bisect" search the file to discover where the problem was. I guess incremental development of macros is necessary so errors would be isolated to recent changes. But this one, while it points right to the error character, gives no clue as to how to fix it.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>codec error from string constant</title><link href="https://sourceforge.net/p/pyexpander/bugs/9/" rel="alternate"/><published>2017-12-11T10:25:24.166000Z</published><updated>2017-12-11T10:25:24.166000Z</updated><author><name>Glenn Linderman</name><uri>https://sourceforge.net/u/guruglenn/</uri></author><id>https://sourceforge.net8e209748d9da88e0384891698a8191b7e1b295d8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I didn't see anything in the documentation about what codec is used by pyexpander. I would have hoped that expander3 would default to Unicode. My UTF-8 source file contains a Chinese character in a string constant, and I got a UnicodeDecodeError.  Granted the Windows itself doesn't handle UTF-8 very well in all circumstances, but Python3 generally does.&lt;/p&gt;
&lt;p&gt;Here's a stack trace:&lt;br/&gt;
Traceback (most recent call last):&lt;br/&gt;
  File "C:\Program Files\Python36\Scripts\expander3.py", line 133, in &amp;lt;module&amp;gt;&lt;br/&gt;
    main()&lt;br/&gt;
  File "C:\Program Files\Python36\Scripts\expander3.py", line 129, in main&lt;br/&gt;
    process_files(options,args)&lt;br/&gt;
  File "C:\Program Files\Python36\Scripts\expander3.py", line 50, in process_files&lt;br/&gt;
    options.include)&lt;br/&gt;
  File "c:\program files\python36\lib\site-packages\pyexpander\lib.py", line 1794, in expandFile&lt;br/&gt;
    return processToPrint(parseFile(filename, no_stdin_warning), filename,&lt;br/&gt;
  File "c:\program files\python36\lib\site-packages\pyexpander\lib.py", line 129, in parseFile&lt;br/&gt;
    st= f.read()&lt;br/&gt;
  File "c:\program files\python36\lib\encodings\cp1252.py", line 23, in decode&lt;br/&gt;
    return codecs.charmap_decode(input,self.errors,decoding_table)&lt;span&gt;[0]&lt;/span&gt;&lt;br/&gt;
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 8426: character maps to &amp;lt;undefined&amp;gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>1.0.7 failed </title><link href="https://sourceforge.net/p/pyexpander/bugs/8/" rel="alternate"/><published>2017-06-27T09:50:35.286000Z</published><updated>2017-06-27T09:50:35.286000Z</updated><author><name>Laurent Caumont</name><uri>https://sourceforge.net/u/lcaumont/</uri></author><id>https://sourceforge.netf67aa2b57c25add478720839d75f2ef2babdfd20</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Version 1.7.0 doesn't seem to work on Windows 10 / Python 2.7.&lt;br/&gt;
With the example from the documentation below:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;$py(
# This starts the count at ONE as the incr is a preincrement.
H2_COUNT=0
# H2_COUNT is incremented each time H2 is called.
def H2(st):
    global H2_COUNT
    H2_COUNT+=1
    return "&lt;span class="nt"&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;%d. %s&lt;span class="nt"&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;" % (H2_COUNT,st)
)
$# the following makes H2 callable without another pair of enclosing brackets:
$extend(H2)\
$H2("First Section")
$H2("Second Section")
$H2("Conclusion")
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Reslut:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;expander -f test2.fx
Traceback (most recent call last):
  File "C:\DevTools\Python27\Scripts\expander.py", line 133, in &amp;lt;module&amp;gt;
    main()
  File "C:\DevTools\Python27\Scripts\expander.py", line 129, in main
    process_files(options,args)
  File "C:\DevTools\Python27\Scripts\expander.py", line 50, in process_files
    options.include)
  File "C:\DevTools\Python27\lib\site-packages\pyexpander\lib.py", line 1774, in expandFile
    return processToPrint(parseFile(filename, no_stdin_warning), filename,
  File "C:\DevTools\Python27\lib\site-packages\pyexpander\lib.py", line 130, in parseFile
    return parseString(st)
  File "C:\DevTools\Python27\lib\site-packages\pyexpander\lib.py", line 116, in parseString
    return EP.parseAll(EP.IndexedString(st), 0)
  File "C:\DevTools\Python27\lib\site-packages\pyexpander\parser.py", line 741, in parseAll
    (pos, elm)= parseDollar(idxst, m.start())
  File "C:\DevTools\Python27\lib\site-packages\pyexpander\parser.py", line 557, in parseDollar
    (a, b)= parseCode(idxst, m.end())
  File "C:\DevTools\Python27\lib\site-packages\pyexpander\parser.py", line 364, in parseCode
    rowcol= idxst.rowcol(pos))
pyexpander.parser.ParseException: end of bracket expression not found at line 1, col 4
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Result of 1.6.0:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;expander -f test2.fx

&lt;span class="nt"&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;1. First Section&lt;span class="nt"&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;2. Second Section&lt;span class="nt"&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;3. Conclusion&lt;span class="nt"&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Regards,&lt;br/&gt;
Laurent&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#7 Line continuation is not working under Windows</title><link href="https://sourceforge.net/p/pyexpander/bugs/7/?limit=25#4a96" rel="alternate"/><published>2017-04-05T20:05:55.189000Z</published><updated>2017-04-05T20:05:55.189000Z</updated><author><name>dejan crnila</name><uri>https://sourceforge.net/u/dejancrn1/</uri></author><id>https://sourceforge.net2ed1d7e64da79894ab3e51255b09069da71dbcb7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Sure,&lt;/p&gt;
&lt;p&gt;see attached picture.&lt;/p&gt;
&lt;p&gt;For my project i made i quick fix by setting LINESEP='\n' and using LINESEP variable instead of os.linesep. By default, python 3 uses universal newlines. I'm not sure how this would work out on other OS.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#7 Line continuation is not working under Windows</title><link href="https://sourceforge.net/p/pyexpander/bugs/7/?limit=25#8661" rel="alternate"/><published>2017-04-05T15:27:07.568000Z</published><updated>2017-04-05T15:27:07.568000Z</updated><author><name>Goetz Pfeiffer</name><uri>https://sourceforge.net/u/goetzpf/</uri></author><id>https://sourceforge.netb3a75f64011a447b105bbfd81496c8efe3c7eeb2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, &lt;br/&gt;
could you please provide an example for this ?&lt;br/&gt;
Greetings, Goetz&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Line continuation is not working under Windows</title><link href="https://sourceforge.net/p/pyexpander/bugs/7/" rel="alternate"/><published>2017-04-02T18:54:26.095000Z</published><updated>2017-04-02T18:54:26.095000Z</updated><author><name>dejan crnila</name><uri>https://sourceforge.net/u/dejancrn1/</uri></author><id>https://sourceforge.net0cafe859c6e9b3740a209c9ba637406d06b46f37</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Line continuation is not working under Windows. It works ok under Linux. Tested with 1.7&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#1 Incorrect line/column  reporting on error</title><link href="https://sourceforge.net/p/pyexpander/bugs/1/?limit=25#bbab" rel="alternate"/><published>2016-10-06T12:08:46.950000Z</published><updated>2016-10-06T12:08:46.950000Z</updated><author><name>Goetz Pfeiffer</name><uri>https://sourceforge.net/u/goetzpf/</uri></author><id>https://sourceforge.neta26752d6d304b7848a5991ccf70b25cfeb63023d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open-later --&amp;gt; closed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;:  --&amp;gt; v1.0_(example)&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#5 DOC typo</title><link href="https://sourceforge.net/p/pyexpander/bugs/5/?limit=50#a422" rel="alternate"/><published>2014-02-27T14:43:26.543000Z</published><updated>2014-02-27T14:43:26.543000Z</updated><author><name>Goetz Pfeiffer</name><uri>https://sourceforge.net/u/goetzpf/</uri></author><id>https://sourceforge.net7e074e56ef70b1cd9d92fe6c415099f5d9fbbb34</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry></feed>