On Thu, 2024-12-26 at 09:26 +0100, Slavko wrote:
> Package: rednotebook
> Severity: normal
> Version: 2.37+ds-1
>
> Hi,
>
> rednotebook emits multiple SyntaxWarning, i noticed this at rednotebook
> package upgrade:
>
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:872: SyntaxWarning:
> invalid escape sequence '\s'
> 'title1' : '~A~\section*{\a}' ,
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:878: SyntaxWarning:
> invalid escape sequence '\s'
> 'numtitle1' : '\n~A~\section{\a}' ,
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:913: SyntaxWarning:
> invalid escape sequence '\l'
> 'bar2' : '\\rule{\linewidth}{1mm}',
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:1323: SyntaxWarning:
> invalid escape sequence '\('
> 'listItemOpen' : '.IP \(bu 3\n',
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:2738: SyntaxWarning:
> invalid escape sequence '\.'
> basename = re.sub('\.(txt|t2t)$','',infile)
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:2929: SyntaxWarning:
> invalid escape sequence '\s'
> cfgregex = re.compile("""
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:2937: SyntaxWarning:
> invalid escape sequence '\s'
> prepostregex = re.compile("""
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:2952: SyntaxWarning:
> invalid escape sequence '\s'
> guicolors = re.compile("^([^\s]+\s+){3}[^\s]+") # 4 tokens
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:2977: SyntaxWarning:
> invalid escape sequence '\s'
> value = re.split('\s+', value)
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:3452: SyntaxWarning:
> invalid escape sequence '\|'
> m = re.search('\a(\|+)$', cell)
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:3559: SyntaxWarning:
> invalid escape sequence '\|'
> m = re.search(' (\|+) *$', line)
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:3565: SyntaxWarning:
> invalid escape sequence '\|'
> line = re.sub(' (\|+)\| ', '\a\\1 | ', line)
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:3571: SyntaxWarning:
> invalid escape sequence '\|'
> ret['cells'] = [re.sub('\a\|+$','',x) for x in ret['cells']]
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:3868: SyntaxWarning:
> invalid escape sequence '\s'
> re.match('^\s*<center>.*</center>\s*$', lines[0]):
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:4151: SyntaxWarning:
> invalid escape sequence '\.'
> elif flag == 'F': x = re.sub('\.[^.]*$','',info['name'])
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:4155: SyntaxWarning:
> invalid escape sequence '\.'
> elif flag == 'e': x = re.search('.(\.([^.]+))?$', info['name']).group(2) or
> ''
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:4382: SyntaxWarning:
> invalid escape sequence '\.'
> val = [re.sub('(?i)\.sty$','',x) for x in val]
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:4536: SyntaxWarning:
> invalid escape sequence '\#'
> txt = re.sub('<','<\#60>',txt)
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:4583: SyntaxWarning:
> invalid escape sequence '\ '
> "Replace any Escape Char \ with a text mask (Input: str or list)"
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:4589: SyntaxWarning:
> invalid escape sequence '\ '
> "Undo the Escape char \ masking (Input: str or list)"
> /usr/share/rednotebook/rednotebook/external/txt2tags.py:4923: SyntaxWarning:
> invalid escape sequence '\s'
> if re.match('^\s+$', rest):
>
>
> regards
> Hi, Yes, busy Xmas error by me. The update to 3.9 of txt2tags.py that fixes this issue did not make it into 2.37. I will correct this with an update in the next few days. Regards Phil -- Donations... Buy Me A Coffee: https://buymeacoffee.com/kathenasorg Liberapay: https://liberapay.com/kathenas -- "I play the game for the game’s own sake" Arthur Conan Doyle - The Adventure of the Bruce-Partington Plans -- Internet Relay Chat (IRC): kathenas Matrix: #kathenas:matrix.org Website: https://kathenas.org Wiki: https://wiki.kathenas.org Instagram: https://instagram.com/kathenasorg Threads: https://www.threads.net/@kathenasorg --
signature.asc
Description: This is a digitally signed message part

