Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37754447
en ru br
Репозитории ALT
S:2.030523-alt1.1
5.1: 2.010709-alt2
4.1: 2.010709-alt1
4.0: 2.010709-alt1
www.altlinux.org/Changes

Группа :: Разработка/Perl
Пакет: perl-Math-Pari

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: Math-Pari-2.030506-escape-left-braces-in-regex.patch
Скачать


--- libPARI/gphelp
+++ libPARI/gphelp
@@ -328,7 +328,7 @@ sub apropos
   @sentence_list = @list = "";
   while (<DOC>)
   {
-    if (/^\\(subsubsec[a-z]*|subsec[a-z]*|section|chapter){/)
+    if (/^\\(subsubsec[a-z]*|subsec[a-z]*|section|chapter)\{/)
     {
       $new = &get_match($_,'{','}');
       &apropos_check();
@@ -733,7 +733,7 @@ sub basic_subst
 
   s/(\\string)?\\_/_/g;
   s/\\([#\$&%|])/$1/g;
-  s/\\(hat(?![a-zA-Z])|\^)({\\?\s*})?/^/g;
+  s/\\(hat(?![a-zA-Z])|\^)(\{\\?\s*})?/^/g;
   # Don't eat spaces after =head:
   s/((^\Q$tr{podleader}\Ehead\d\s*)?) *\\pow(?![a-zA-z]) */$1^/gmo;
 
@@ -1025,8 +1025,8 @@ sub TeXprint_topod {
   s/\$\$(.*?)\$\$\s*/\n\nS<  >$tr{startcode}$1$tr{endcode}\n\n/gs;
   s/\$([^\$]+)\$/$tr{startcode}$1$tr{endcode}/g;
 
-  s/\\s(?:ref|idx){\s*([^{}]*)}/$tr{startindex} . for_index($1) . $tr{endindex}/ge;
-  s/\\(?:ref|idx){\s*([^{}]*)}/$tr{startindex} . for_index($1) . "$tr{endindex}$1"/ge;
+  s/\\s(?:ref|idx)\{\s*([^{}]*)}/$tr{startindex} . for_index($1) . $tr{endindex}/ge;
+  s/\\(?:ref|idx)\{\s*([^{}]*)}/$tr{startindex} . for_index($1) . "$tr{endindex}$1"/ge;
 
 # Conflict between different versions of PARI and refcard:
 # s/\\(?:key|li)\s*{(.*)}\s*{(.+)}[ \t]*\n/\n\n=item C<$2>\n\n$1\n\n/msg;
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin