require "spec_helper"
require "fileutils"
RSpec.describe IsoDoc do
it "generates file based on string input" do
FileUtils.rm_f "test.doc"
FileUtils.rm_f "test.html"
IsoDoc::HtmlConvert.new({wordstylesheet: "spec/assets/word.css", htmlstylesheet: "spec/assets/html.css", filename: "test"}).convert("test", <<~"INPUT", false)
These results are based on a study carried out on three different types of kernel.
These results are based on a study carried out on three different types of kernel.
These results are based on a study carried out on three different types of kernel.
These results are based on a study carried out on three different types of kernel.
These results are based on a study carried out on three different types of kernel.
These results are based on a study carried out on three different types of kernel.
These results are based on a study carried out on three different types of kernel.
\s*
\s*
Term |
Definition |
Term 2 |
Definition 2 |
rice retaining its husk after threshing
The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here
paddy
rice retaining its husk after threshing
[SOURCE: ISO 7301:2011, Clause 3.1, modified — The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here]
Formerly denoted as 15 % (m/m).
A Formerly denoted as 15 % (m/m).
\s*
\s*
TOC \o "1-2" \h \z \u 1. Clause 4 . PAGEREF _Toc \h 1
1.1. Introduction to this . PAGEREF _Toc \h 1
1.2. Clause 4.2 . PAGEREF _Toc \h 1
Formerly denoted as 15 % (m/m).
A Formerly denoted as 15 % (m/m).
\s*
\s*
TOC \o "1-3" \h \z \u 1. Clause 4 . PAGEREF _Toc \h 1
1.1. Introduction to this . PAGEREF _Toc \h 1
1.2. Clause 4.2 . PAGEREF _Toc \h 1
1.2.1. Clause 4.2.1 . PAGEREF _Toc \h 1
These results are based on a study carried out on three different types of kernel.
This is a footnote.
Formerly denoted as 15 % (m/m).
A Formerly denoted as 15 % (m/m).
Figure 1 — Split-it-right sample divider
Figure 1 — Split-it-right sample divider
Figure 1 — Split-it-right sample divider
rice retaining its husk after threshing
Foreign seeds, husks, bran, sand, dust.
The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here
rice retaining its husk after threshing
The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.
The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.
rice retaining its husk after threshing
Foreign seeds, husks, bran, sand, dust.
A
B
C
D
A1
B1
C1
\s*
\s*
<xml> &XML code
\s*
\s*
ABC