brief 1.15.1 → 1.15.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 714a3a70230aa21a209613c5c3fab3f59704ddb8
4
- data.tar.gz: 9ec0e49b18ff4bc4fb7dfb89a62cafffe519daa6
3
+ metadata.gz: 6bb3f0c2d203c067c1236e4c1a8206c808def989
4
+ data.tar.gz: c0a4648cb668700f583e1de7106b27674ead53a2
5
5
  SHA512:
6
- metadata.gz: ea86655bef927642640cc74a21bf6dc3ea40db1ac91a4155031364f6dc14a977266adb1a50114a7b09613949968058ec47175be9652325a4230966b9ddd58015
7
- data.tar.gz: b02881ba60bd25552f87d71f3b2bba7e97072471753e85fe285674519f815b3c7261888de326697ff1ab91c24985bb9fd5dfa6a0ec72d1805184b53e6da3456a
6
+ metadata.gz: 492c3c67e459ffb73e1c93a94cfe2a487ca5b9c765959c2a3db2be8a7ded8ac3e7845b3f3690ea97670afe22c6b214e4d43ba3886ed2c649c60f9988338750be
7
+ data.tar.gz: d313d3ce9dd563720c87e73a33711e4b88e2e5c8e7b0ad2b19ef8406aee07322dd41365ae7b083c9a1b763b5fa9d40e8a8f469d7ef3be2f186cfb49ea7c79f6d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brief (1.15.1)
4
+ brief (1.15.2)
5
5
  activesupport (> 3.2)
6
6
  commander (~> 4.3)
7
7
  em-websocket (~> 0.5)
@@ -19,7 +19,11 @@ module Brief
19
19
  templates_path: 'templates',
20
20
  data_path: 'data',
21
21
  assets_path: 'assets',
22
- lib_path: "lib"
22
+ lib_path: "lib",
23
+
24
+ # line wrapping in vim and other editors creates
25
+ # a bunch of extra br/ tags
26
+ preserve_gfm_line_breaks: false
23
27
  }.to_mash
24
28
  end
25
29
 
@@ -57,6 +57,9 @@ module Brief
57
57
  end
58
58
 
59
59
  def unwrapped_html
60
+ # remove annoying linebreaks from paragraphs
61
+ parser.css("p br").remove() unless Brief.configuration.preserve_gfm_line_breaks
62
+
60
63
  parser.to_html
61
64
  end
62
65
 
data/lib/brief/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Brief
2
- VERSION = '1.15.1'
2
+ VERSION = '1.15.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brief
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.1
4
+ version: 1.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Soeder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-24 00:00:00.000000000 Z
11
+ date: 2015-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie