Skip to content

Commit

Permalink
Used doubleQuotes from pretty printers
Browse files Browse the repository at this point in the history
  • Loading branch information
samm82 committed Jul 2, 2019
1 parent d2ad9a8 commit 8d99fe2
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 38 deletions.
4 changes: 2 additions & 2 deletions code/drasil-printers/Language/Drasil/HTML/Print.hs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pSpec (Ref Cite2 r EmptyS) = reflink r $ text r -- no difference for cita
pSpec (Ref Cite2 r a) = reflinkInfo r (text r) (pSpec a) -- no difference for citations?
pSpec (Ref External r a) = reflinkURI r $ pSpec a
pSpec EmptyS = text "" -- Expected in the output
pSpec (Quote q) = text "&quot;" <> pSpec q <> text "&quot;"
pSpec (Quote q) = doubleQuotes $ pSpec q
-- pSpec (Acc Grave c) = text $ '&' : c : "grave;" --Only works on vowels.
-- pSpec (Acc Acute c) = text $ '&' : c : "acute;" --Only works on vowels.

Expand Down Expand Up @@ -150,7 +150,7 @@ uSymb (L.US ls) = formatu t b
pExpr :: Expr -> Doc
pExpr (Dbl d) = text $ showEFloat Nothing d ""
pExpr (Int i) = text $ show i
pExpr (Str s) = text $ "&quot;" ++ s ++ "&quot;"
pExpr (Str s) = doubleQuotes $ text s
pExpr (Div a b) = fraction (pExpr a) (pExpr b)
pExpr (Case ps) = cases ps pExpr
pExpr (Mtx a) = text "<table class=\"matrix\">\n" <> pMatrix a <> text "</table>"
Expand Down
4 changes: 2 additions & 2 deletions code/stable/gamephys/Website/Chipmunk_SRS.html
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ <h2>Purpose of Document</h2>
This document describes the modeling of an open source 2D rigid body physics library used for games. The theoretical models and goal statements used in Chipmunk2D are provided. This document is intended to be used as a reference to provide all necessary information to understand and verify the model.
</p>
<p class="paragraph">
This document will be used as a starting point for subsequent development phases, including writing the design specification and the software verification and validation plan. The design document will show how the requirements are to be realized, including decisions on the numerical algorithms and programming environment. The verification and validation plan will show the steps that will be used to increase confidence in the software documentation and the implementation. Although the SRS fits in a series of documents that follow the so-called waterfall model, the actual development process is not constrained in any way. Even when the waterfall model is not followed, as Parnas and Clements point out <a href=#parnasClements1986>parnasClements1986</a>, the most logical way to present the documentation is still to &quot;fake&quot; a rational design process.
This document will be used as a starting point for subsequent development phases, including writing the design specification and the software verification and validation plan. The design document will show how the requirements are to be realized, including decisions on the numerical algorithms and programming environment. The verification and validation plan will show the steps that will be used to increase confidence in the software documentation and the implementation. Although the SRS fits in a series of documents that follow the so-called waterfall model, the actual development process is not constrained in any way. Even when the waterfall model is not followed, as Parnas and Clements point out <a href=#parnasClements1986>parnasClements1986</a>, the most logical way to present the documentation is still to "fake" a rational design process.
</p>
</div>
</div>
Expand Down Expand Up @@ -2532,7 +2532,7 @@ <h1>Off-The-Shelf Solutions</h1>
<div class="section">
<h1>Traceability Matrices and Graphs</h1>
<p class="paragraph">
The purpose of the traceability matrices is to provide easy references on what has to be additionally modified if a certain component is changed. Every time a component is changed, the items in the column of that component that are marked with an &quot;X&quot; should be modified as well. <a href=#Table:TraceMatAvsAll>Table:TraceMatAvsAll</a> shows the dependencies of data definitions, theoretical models, general definitions, instance models, requirements, likely changes, and unlikely changes on the assumptions. <a href=#Table:TraceMatRefvsRef>Table:TraceMatRefvsRef</a> shows the dependencies of data definitions, theoretical models, general definitions, and instance models with each other. <a href=#Table:TraceMatAllvsR>Table:TraceMatAllvsR</a> shows the dependencies of requirements on the data definitions, theoretical models, general definitions, and instance models.
The purpose of the traceability matrices is to provide easy references on what has to be additionally modified if a certain component is changed. Every time a component is changed, the items in the column of that component that are marked with an "X" should be modified as well. <a href=#Table:TraceMatAvsAll>Table:TraceMatAvsAll</a> shows the dependencies of data definitions, theoretical models, general definitions, instance models, requirements, likely changes, and unlikely changes on the assumptions. <a href=#Table:TraceMatRefvsRef>Table:TraceMatRefvsRef</a> shows the dependencies of data definitions, theoretical models, general definitions, and instance models with each other. <a href=#Table:TraceMatAllvsR>Table:TraceMatAllvsR</a> shows the dependencies of requirements on the data definitions, theoretical models, general definitions, and instance models.
</p>
<div id="Table:TraceMatAvsAll">
<table class="table">
Expand Down
18 changes: 9 additions & 9 deletions code/stable/glassbr/Website/GlassBR_SRS.html
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ <h2>Purpose of Document</h2>
The main purpose of this document is to predict whether a given glass slab is likely to resist a specified blast. The goals and theoretical models used in the GlassBR code are provided, with an emphasis on explicitly identifying assumptions and unambiguous definitions. This document is intended to be used as a reference to provide all information necessary to understand and verify the analysis. The SRS is abstract because the contents say what problem is being solved, but not how to solve it.
</p>
<p class="paragraph">
This document will be used as a starting point for subsequent development phases, including writing the design specification and the software verification and validation plan. The design document will show how the requirements are to be realized, including decisions on the numerical algorithms and programming environment. The verification and validation plan will show the steps that will be used to increase confidence in the software documentation and the implementation. Although the SRS fits in a series of documents that follow the so-called waterfall model, the actual development process is not constrained in any way. Even when the waterfall model is not followed, as Parnas and Clements point out <a href=#parnasClements1986>parnasClements1986</a>, the most logical way to present the documentation is still to &quot;fake&quot; a rational design process.
This document will be used as a starting point for subsequent development phases, including writing the design specification and the software verification and validation plan. The design document will show how the requirements are to be realized, including decisions on the numerical algorithms and programming environment. The verification and validation plan will show the steps that will be used to increase confidence in the software documentation and the implementation. Although the SRS fits in a series of documents that follow the so-called waterfall model, the actual development process is not constrained in any way. Even when the waterfall model is not followed, as Parnas and Clements point out <a href=#parnasClements1986>parnasClements1986</a>, the most logical way to present the documentation is still to "fake" a rational design process.
</p>
</div>
</div>
Expand Down Expand Up @@ -1132,7 +1132,7 @@ <h3>Data Definitions</h3>
<th>Equation</th>
<td>
<div class="equation">
<em>J = interpZ(&quot;SDF.txt&quot;,AR,q&#770;)</em>
<em>J = interpZ("SDF.txt",AR,q&#770;)</em>
</div>
</td>
</tr>
Expand Down Expand Up @@ -1266,9 +1266,9 @@ <h3>Data Definitions</h3>
<div class="equation">
<em>GTF = <span class="casebr">{</span>
<div class="cases">
<span>1 , <span class="case">g = &quot;AN&quot;</span></span>
<span>4 , <span class="case">g = &quot;FT&quot;</span></span>
<span>2 , <span class="case">g = &quot;HS&quot;</span></span>
<span>1 , <span class="case">g = "AN"</span></span>
<span>4 , <span class="case">g = "FT"</span></span>
<span>2 , <span class="case">g = "HS"</span></span>
</div></em>
</div>
</td>
Expand Down Expand Up @@ -1402,7 +1402,7 @@ <h3>Data Definitions</h3>
<th>Equation</th>
<td>
<div class="equation">
<em>q&#770;<sub>tol</sub> = interpY(&quot;SDF.txt&quot;,AR,J<sub>tol</sub>)</em>
<em>q&#770;<sub>tol</sub> = interpY("SDF.txt",AR,J<sub>tol</sub>)</em>
</div>
</td>
</tr>
Expand Down Expand Up @@ -1821,7 +1821,7 @@ <h3>Data Definitions</h3>
<th>Equation</th>
<td>
<div class="equation">
<em>q = interpY(&quot;TSD.txt&quot;,SD,w<sub>TNT</sub>)</em>
<em>q = interpY("TSD.txt",SD,w<sub>TNT</sub>)</em>
</div>
</td>
</tr>
Expand Down Expand Up @@ -2160,7 +2160,7 @@ <h2>Functional Requirements</h2>
</p>
<p>
<div id="checkGlassSafety">
Check-Glass-Safety: If <em>is-safePb &and; is-safeLR</em> (from <a href=#TM:isSafeProb>TM: isSafeProb</a> and <a href=#TM:isSafeLoad>TM: isSafeLoad</a>), output the message &quot;For the given input parameters, the glass is considered safe.&quot; If the condition is false, then output the message &quot;For the given input parameters, the glass is NOT considered safe.&quot;
Check-Glass-Safety: If <em>is-safePb &and; is-safeLR</em> (from <a href=#TM:isSafeProb>TM: isSafeProb</a> and <a href=#TM:isSafeLoad>TM: isSafeLoad</a>), output the message "For the given input parameters, the glass is considered safe." If the condition is false, then output the message "For the given input parameters, the glass is NOT considered safe."
</div>
</p>
<p>
Expand Down Expand Up @@ -2484,7 +2484,7 @@ <h1>Unlikely Changes</h1>
<div class="section">
<h1>Traceability Matrices and Graphs</h1>
<p class="paragraph">
The purpose of the traceability matrices is to provide easy references on what has to be additionally modified if a certain component is changed. Every time a component is changed, the items in the column of that component that are marked with an &quot;X&quot; should be modified as well. <a href=#Table:TraceMatAvsAll>Table:TraceMatAvsAll</a> shows the dependencies of data definitions, theoretical models, general definitions, instance models, requirements, likely changes, and unlikely changes on the assumptions. <a href=#Table:TraceMatRefvsRef>Table:TraceMatRefvsRef</a> shows the dependencies of data definitions, theoretical models, general definitions, and instance models with each other. <a href=#Table:TraceMatAllvsR>Table:TraceMatAllvsR</a> shows the dependencies of requirements on the data definitions, theoretical models, general definitions, and instance models.
The purpose of the traceability matrices is to provide easy references on what has to be additionally modified if a certain component is changed. Every time a component is changed, the items in the column of that component that are marked with an "X" should be modified as well. <a href=#Table:TraceMatAvsAll>Table:TraceMatAvsAll</a> shows the dependencies of data definitions, theoretical models, general definitions, instance models, requirements, likely changes, and unlikely changes on the assumptions. <a href=#Table:TraceMatRefvsRef>Table:TraceMatRefvsRef</a> shows the dependencies of data definitions, theoretical models, general definitions, and instance models with each other. <a href=#Table:TraceMatAllvsR>Table:TraceMatAllvsR</a> shows the dependencies of requirements on the data definitions, theoretical models, general definitions, and instance models.
</p>
<div id="Table:TraceMatAvsAll">
<table class="table">
Expand Down
4 changes: 2 additions & 2 deletions code/stable/nopcm/Website/NoPCM_SRS.html
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ <h2>Purpose of Document</h2>
The main purpose of this document is to describe the modelling of solar water heating system. The goals and theoretical models used in the SWHS code are provided, with an emphasis on explicitly identifying assumptions and unambiguous definitions. This document is intended to be used as a reference to provide ad hoc access to all information necessary to understand and verify the model. The SRS is abstract because the contents say what problem is being solved, but do not say how to solve it.
</p>
<p class="paragraph">
This document will be used as a starting point for subsequent development phases, including writing the design specification and the software verification and validation plan. The design document will show how the requirements are to be realized, including decisions on the numerical algorithms and programming environment. The verification and validation plan will show the steps that will be used to increase confidence in the software documentation and the implementation. Although the SRS fits in a series of documents that follow the so-called waterfall model, the actual development process is not constrained in any way. Even when the waterfall model is not followed, as Parnas and Clements point out <a href=#parnasClements1986>parnasClements1986</a>, the most logical way to present the documentation is still to &quot;fake&quot; a rational design process.
This document will be used as a starting point for subsequent development phases, including writing the design specification and the software verification and validation plan. The design document will show how the requirements are to be realized, including decisions on the numerical algorithms and programming environment. The verification and validation plan will show the steps that will be used to increase confidence in the software documentation and the implementation. Although the SRS fits in a series of documents that follow the so-called waterfall model, the actual development process is not constrained in any way. Even when the waterfall model is not followed, as Parnas and Clements point out <a href=#parnasClements1986>parnasClements1986</a>, the most logical way to present the documentation is still to "fake" a rational design process.
</p>
</div>
</div>
Expand Down Expand Up @@ -1608,7 +1608,7 @@ <h1>Unlikely Changes</h1>
<div class="section">
<h1>Traceability Matrices and Graphs</h1>
<p class="paragraph">
The purpose of the traceability matrices is to provide easy references on what has to be additionally modified if a certain component is changed. Every time a component is changed, the items in the column of that component that are marked with an &quot;X&quot; should be modified as well. <a href=#Table:TraceMatAvsAll>Table:TraceMatAvsAll</a> shows the dependencies of data definitions, theoretical models, general definitions, instance models, requirements, likely changes, and unlikely changes on the assumptions. <a href=#Table:TraceMatRefvsRef>Table:TraceMatRefvsRef</a> shows the dependencies of data definitions, theoretical models, general definitions, and instance models with each other. <a href=#Table:TraceMatAllvsR>Table:TraceMatAllvsR</a> shows the dependencies of requirements, goal statements on the data definitions, theoretical models, general definitions, and instance models.
The purpose of the traceability matrices is to provide easy references on what has to be additionally modified if a certain component is changed. Every time a component is changed, the items in the column of that component that are marked with an "X" should be modified as well. <a href=#Table:TraceMatAvsAll>Table:TraceMatAvsAll</a> shows the dependencies of data definitions, theoretical models, general definitions, instance models, requirements, likely changes, and unlikely changes on the assumptions. <a href=#Table:TraceMatRefvsRef>Table:TraceMatRefvsRef</a> shows the dependencies of data definitions, theoretical models, general definitions, and instance models with each other. <a href=#Table:TraceMatAllvsR>Table:TraceMatAllvsR</a> shows the dependencies of requirements, goal statements on the data definitions, theoretical models, general definitions, and instance models.
</p>
<div id="Table:TraceMatAvsAll">
<table class="table">
Expand Down
Loading

0 comments on commit 8d99fe2

Please sign in to comment.