-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea2b4bd
commit 1aa759d
Showing
3 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Quisque finibus tellus non molestie porta. In non posuere metus, vitae tincidunt | ||
enim. Nam quis elit pharetra, elementum elit lacinia, efficitur nibh. Cras | ||
lobortis neque sed ante ornare rutrum. Maecenas sed urna nisl. Phasellus aliquam | ||
finibus ex vitae iaculis. Vestibulum ante ipsum primis in faucibus orci luctus | ||
et ultrices posuere cubilia curae; Suspendisse eget tortor eget sapien tincidunt | ||
vestibulum eu a velit. Pellentesque eu tortor ut lectus sodales ornare. | ||
Quisque finibus tellus non molestie porta. In non posuere metus, vitae | ||
tincidunt enim. Nam quis elit pharetra, elementum elit lacinia, efficitur | ||
nibh. Cras lobortis neque sed ante ornare rutrum. Maecenas sed urna nisl. | ||
Phasellus aliquam finibus ex vitae iaculis. Vestibulum ante ipsum primis in | ||
faucibus orci luctus et ultrices posuere cubilia curae; Suspendisse eget | ||
tortor eget sapien tincidunt vestibulum eu a velit. Pellentesque eu tortor | ||
ut lectus sodales ornare. | ||
Quisque finibus tellus non molestie porta. In non posuere metus, vitae | ||
tincidunt enim. Nam quis elit pharetra, elementum elit lacinia, | ||
efficitur nibh. Cras lobortis neque sed ante ornare rutrum. Maecenas sed | ||
urna nisl. Phasellus aliquam finibus ex vitae iaculis. Vestibulum ante | ||
ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; | ||
Suspendisse eget tortor eget sapien tincidunt vestibulum eu a velit. | ||
Pellentesque eu tortor ut lectus sodales ornare. | ||
Quisque finibus tellus non molestie porta. In non posuere metus, | ||
vitae tincidunt enim. Nam quis elit pharetra, elementum elit | ||
lacinia, efficitur nibh. Cras lobortis neque sed ante ornare rutrum. | ||
Maecenas sed urna nisl. Phasellus aliquam finibus ex vitae iaculis. | ||
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices | ||
posuere cubilia curae; Suspendisse eget tortor eget sapien tincidunt | ||
vestibulum eu a velit. Pellentesque eu tortor ut lectus sodales | ||
ornare. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
module DodoRibbonRatio where | ||
|
||
import Prelude | ||
|
||
import Dodo (Doc, fourSpaces, indent, lines, plainText, print, textParagraph) | ||
import Effect (Effect) | ||
import Effect.Class.Console as Console | ||
|
||
test :: forall a. Doc a | ||
test = lines | ||
[ latin | ||
, indent $ indent latin | ||
, indent $ indent $ indent $ indent latin | ||
, indent $ indent $ indent $ indent $ indent $ indent latin | ||
] | ||
where | ||
latin = textParagraph | ||
""" | ||
Quisque finibus tellus non molestie porta. In non posuere metus, vitae | ||
tincidunt enim. Nam quis elit pharetra, elementum elit lacinia, efficitur | ||
nibh. Cras lobortis neque sed ante ornare rutrum. Maecenas sed urna nisl. | ||
Phasellus aliquam finibus ex vitae iaculis. Vestibulum ante ipsum primis | ||
in faucibus orci luctus et ultrices posuere cubilia curae; Suspendisse | ||
eget tortor eget sapien tincidunt vestibulum eu a velit. Pellentesque eu | ||
tortor ut lectus sodales ornare. | ||
""" | ||
|
||
main :: Effect Unit | ||
main = do | ||
Console.log $ print plainText (fourSpaces { pageWidth = 160, ribbonRatio = 0.5 }) test |