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 |
'1M', '01M', and '0001M' all describe the calendar month January.
'2M', '02M', and '0002M' all describe the calendar month February.
rice retaining its husk after threshing
The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here
For the purposes of this document, the following terms and definitions apply.
ISO and IEC maintain terminological databases for use in standardization at the following addresses:
ISO Online browsing platform: available at http://www.iso.org/obp
IEC Electropedia: available at http://www.electropedia.org
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
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.