rtf_filter 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rtf_filter.rb +1 -1
- data/lib/rtf_filter/version.rb +1 -1
- metadata +3 -3
data/lib/rtf_filter.rb
CHANGED
@@ -48,7 +48,7 @@ module RtfFilter
|
|
48
48
|
def self.format_txt(txt)
|
49
49
|
txt.strip! #remove blank lines at begining and end
|
50
50
|
txt.gsub!(/(^|\n)[ \t\r]+/, "\\1") #delete leading whitespace (spaces/tabs) from beginning of each line
|
51
|
-
txt.gsub!(/\n{3,}/,
|
51
|
+
txt.gsub!(/\n{3,}/, "\n\n") #replace all occurrences of 3 or more line breaks with just two
|
52
52
|
return txt
|
53
53
|
end
|
54
54
|
|
data/lib/rtf_filter/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtf_filter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-01-27 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description: Converts Rich Text Format (RTF) word processing files to plain text.
|
15
15
|
Uses the rtf-filter C++ executable
|
@@ -24,7 +24,7 @@ files:
|
|
24
24
|
- CDDL-LICENSE
|
25
25
|
- Rakefile
|
26
26
|
- README.rdoc
|
27
|
-
homepage: https://github.com/
|
27
|
+
homepage: https://github.com/leanbid/rtf_filter
|
28
28
|
licenses:
|
29
29
|
- CDDL
|
30
30
|
post_install_message:
|