Changeset 1173547 in git for doc/doc2tex.pl


Ignore:
Timestamp:
Dec 10, 1999, 5:41:51 PM (23 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
131a5790de5c119bcc15d738ae2528f187966154
Parents:
a82cbf7acd39c9cda284cc9c53921da9d5371095
Message:
* some of GMG's changes


git-svn-id: file:///usr/local/Singular/svn/trunk@4002 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/doc2tex.pl

    ra82cbf7 r1173547  
    11#!/usr/local/bin/perl
    2 # $Id: doc2tex.pl,v 1.22 1999-12-06 16:06:54 obachman Exp $
     2# $Id: doc2tex.pl,v 1.23 1999-12-10 16:41:48 obachman Exp $
    33###################################################################
    44#  Computer Algebra System SINGULAR
     
    350350        # break after $ex_length characters
    351351        $to_do = $_;
    352         while (length($to_do) > $ex_length && $to_do =~ /\w/)
     352        while (length($to_do) > $ex_length && $to_do =~ /\w/ && 
     353               substr($to_do, $ex_length) !~ /^\s*$/)
    353354        {
     355         
    354356          $done .= substr($to_do, 0, $ex_length)."\\\n   ";
    355           $to_do = substr($to_do, $ex_length + 1);
     357          $to_do = substr($to_do, $ex_length);
    356358        }
    357359        $_ = $done.$to_do if($done);
Note: See TracChangeset for help on using the changeset viewer.