opmac2html 0.0.3 → 0.0.4
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/opmac2html/macro_parser.rb +3 -1
- data/lib/opmac2html/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0aa7b44361b075dd077be1de01a064a9b569a96b
|
|
4
|
+
data.tar.gz: 8175a1649256c48d9c1635c681e5fea6a652c4a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 930012ddaae55bf997493dba04fdcbb74bf917741718272287031f96326e69b1fd559936ecba5f92a63ff3ef7072ba50fa401be0d4b654f4dacdb56d9c40ec04
|
|
7
|
+
data.tar.gz: 0f94e11d87209d32dba0dd61d2f44006467db4ac207d783b647c6d0b4203dc36e5e8d493a44457a6e1f3218643f63b38c848f68199bb7634a54b8f1771b8e19e
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module Opmac2html
|
|
2
2
|
# Mixin providing parsing of macro calls
|
|
3
3
|
module MacroParser
|
|
4
|
-
TITLES = %w(\\tit \\chap \\sec
|
|
4
|
+
TITLES = %w(\\tit \\chap \\sec\ \\secc)
|
|
5
5
|
IN_PAR_MACROS = %w(\\TeX \\LaTeX \\csplain \\url \\ulink)
|
|
6
6
|
|
|
7
7
|
def parse_macro
|
|
@@ -101,6 +101,8 @@ module Opmac2html
|
|
|
101
101
|
@input = part[2]
|
|
102
102
|
elsif part_line[0].start_with?('\\noindent')
|
|
103
103
|
err cut_at(/\s/)
|
|
104
|
+
elsif part_line[0].start_with?('\\nonum')
|
|
105
|
+
err cut_at(/\s/)
|
|
104
106
|
elsif part_line[0].start_with? '\\label'
|
|
105
107
|
parse_label
|
|
106
108
|
elsif part_line[0].start_with? '\\centerline'
|
data/lib/opmac2html/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: opmac2html
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Martin Kinčl
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-11-
|
|
11
|
+
date: 2016-11-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|