From 8f9064af6e7e206033b1c497e3185054dd871a19 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Tue, 7 Nov 2006 01:58:01 +0000 Subject: [PATCH] Fit 80 colums --- fetch_doc.rb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/fetch_doc.rb b/fetch_doc.rb index b8e933f..8f2a746 100755 --- a/fetch_doc.rb +++ b/fetch_doc.rb @@ -19,16 +19,19 @@ REPLACE_LIST = [ # Remove wiki links [[link|name]] { :pattern => /\[\[.+\|(.+)\]\]/, :with => '\1' }, - # Remove trailing whitespaces - { :pattern => /^ /, :with => '' }, - - # Remove misc xhtml / wiki characters + # Remove misc xhtml/wiki characters { :pattern => /\/\//, :with => '' }, { :pattern => /\\\\ /, :with => '' }, { :pattern => /\*\*/, :with => '' }, { :pattern => /</, :with => '<' }, { :pattern => />/, :with => '>' }, { :pattern => /"/, :with => '"' }, + + # Remove trailing whitespaces + { :pattern => /^ /, :with => '' }, + + # Fit 80 colums + { :pattern => /(.{1,80})( +|$\n?)|(.{1,80})/, :with => "\\1\\3\n" }, ] def fetch_doc(name)