patinfo2csv 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ === 1.0.3 / 23.03.2012
2
+
3
+ * Updated linebreak and <br /> tag
4
+
1
5
  === 1.0.2 / 23.03.2012
2
6
 
3
7
  * Added HTML <strong> and <br> tags into text
@@ -8,7 +8,7 @@ require 'patinfo2csv/converter'
8
8
  module Patinfo2csv
9
9
  # FIXME
10
10
  # escaped backslash and utf-8 code map
11
- # for patinfo.yaml(ASII)
11
+ # for patinfo.yaml(ASCII)
12
12
  ESCAPED_STR_CODE_MAP = {
13
13
  /\\x24/ => "$",
14
14
  /\\x25/ => "%",
@@ -63,17 +63,15 @@ module Patinfo2csv
63
63
  text = ''
64
64
  desc[chapter.to_s]['sections'].each do |section|
65
65
  unless section['subheading'].empty?
66
- text << "<strong>#{section['subheading'].chomp}</strong><br/>"
66
+ text << "<strong>#{section['subheading'].chomp}</strong><br />"
67
67
  end
68
- text << "\n"
69
68
  if section.has_key?('paragraphs')
70
69
  section['paragraphs'].each do |paragraph|
71
70
  unless paragraph['text'].empty?
72
- text << paragraph['text'].gsub(/\r\n|\r|\n/, "<br/>") + "<br/>\n"
71
+ text << paragraph['text'].gsub(/\r\n|\r|\n/, "<br />") + "<br />"
73
72
  end
74
73
  end
75
74
  end
76
- text << "\n"
77
75
  end
78
76
  else
79
77
  text = "" #empty
@@ -1,3 +1,3 @@
1
1
  module Patinfo2csv
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patinfo2csv
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
16
- requirement: &13911020 !ruby/object:Gem::Requirement
16
+ requirement: &20587920 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.10'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *13911020
24
+ version_requirements: *20587920
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: hoe
27
- requirement: &13910600 !ruby/object:Gem::Requirement
27
+ requirement: &20587480 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '2.13'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *13910600
35
+ version_requirements: *20587480
36
36
  description: ! 'Patinfo2csv extracts and converts patinfo.yaml to patinfo.csv;
37
37
 
38
38
  only 4 chapters(de, text) in patinfo.yaml are extracted.