echoes 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/echoes/parser.rb +7 -1
- data/lib/echoes/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7a8be3caa5aa66d44068fc6f0f3d9b9e0e8ada790feb546a8b93e1fa11285c8e
|
|
4
|
+
data.tar.gz: 88c4d5b99a0c214a3825f5f7cdaeca2a9c94be873e306ebea307d7dca0e959ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a3556fc2682146b14af577037e25a922013d953acfcd07ccafd9f4fb4731ad1d0b1c822e4eb1cb6bccb0181565f087c21368f96ee97c86bb1bb4845b3b59c1cb
|
|
7
|
+
data.tar.gz: a39762c03920861a60deef354b7322a58016f37b28b5e97643a206494c53fc29cf91d8e8b4a5ec68b5651b241a4e0cf6500048c633bd33d54430e9426a99be0c
|
data/lib/echoes/parser.rb
CHANGED
|
@@ -506,7 +506,13 @@ module Echoes
|
|
|
506
506
|
next unless v
|
|
507
507
|
case k
|
|
508
508
|
when 's' then params[:scale] = v.to_i.clamp(1, 7)
|
|
509
|
-
|
|
509
|
+
# `w=` was capped at 7 to follow the Kitty multicell spec, but
|
|
510
|
+
# the explicit-width path is the only practical way to do
|
|
511
|
+
# server-side slide-level centering (block spans the row, halign=2
|
|
512
|
+
# centers text within it). Raise the cap so a 30-wide title block
|
|
513
|
+
# at scale=5 (block_w = 150 cells) is representable; sane decks
|
|
514
|
+
# don't approach this. The lower bound (non-negative) is kept.
|
|
515
|
+
when 'w' then params[:width] = [v.to_i, 0].max
|
|
510
516
|
when 'n' then params[:frac_n] = v.to_i.clamp(0, 15)
|
|
511
517
|
when 'd' then params[:frac_d] = v.to_i.clamp(0, 15)
|
|
512
518
|
when 'v' then params[:valign] = v.to_i.clamp(0, 3)
|
data/lib/echoes/version.rb
CHANGED