livetext 0.8.33 → 0.8.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/livetext.rb +1 -1
- data/lib/standard.rb +1 -1
- data/test/data/table_with_heredocs/expected-output.txt +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c530b41a9e09b07500ba162a39281433ea9a3077
|
4
|
+
data.tar.gz: 8d647b896eb978609138466b71f9b6945fa34e96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1737173d2b27d3c7661afe2a9cc73af36f7a49a09ab1b771b24347b4346bb9109a2bf106b6eb0a0b77978e523c4b10f14e481229fb7e91aab2a70262ec3b2164
|
7
|
+
data.tar.gz: 03509140d2029abadfd7888a506039f453d7fd8644f2150c5d75ae8c51e0ebb1db48b9aeaba80da41a40d2e2e5bafa1f93ef6738fdfb862f0e08593d8294237c
|
data/lib/livetext.rb
CHANGED
data/lib/standard.rb
CHANGED
@@ -306,7 +306,7 @@ module Livetext::Standard
|
|
306
306
|
maxw = nil
|
307
307
|
lines.each do |line|
|
308
308
|
_formatting(line) # May split into multiple lines!
|
309
|
-
line.gsub!(
|
309
|
+
line.gsub!(/\n+/, "<br>")
|
310
310
|
cells = line.split(delim)
|
311
311
|
wide = cells.map {|x| x.length }
|
312
312
|
maxw = [0] * cells.size
|
@@ -1,3 +1,13 @@
|
|
1
1
|
Testing heredocs (used in a table)
|
2
2
|
<p>
|
3
3
|
|
4
|
+
<br><center><table border=1 width=90% cellpadding=5>
|
5
|
+
<tr>
|
6
|
+
<td>This is <br>only <br>a test.<br></td>
|
7
|
+
<td>This is <br>just <br>some <br>random text.<br></td>
|
8
|
+
</tr>
|
9
|
+
<tr>
|
10
|
+
<td>And so<br>is this.<br></td>
|
11
|
+
<td>This is <br>row 2<br>col 2<br></td>
|
12
|
+
</tr>
|
13
|
+
</table>
|