summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJovansonlee Cesar <ivanceras@gmail.com>2018-07-31 03:47:44 +0800
committerJovansonlee Cesar <ivanceras@gmail.com>2018-07-31 03:47:44 +0800
commit15d8b663748123c9aec518b7dbc276d11bf60f3d (patch)
tree76b66c93bd0479c49397fcf9ec09942bf0ab1183
parent63f902c70e4b82fee1aeb2e7bc73c56ae5aeab24 (diff)
using , as slanting dashed line
-rw-r--r--svgbob/src/enhance.rs10
-rw-r--r--svgbob/src/properties.rs2
2 files changed, 6 insertions, 6 deletions
diff --git a/svgbob/src/enhance.rs b/svgbob/src/enhance.rs
index 710afbc..396de00 100644
--- a/svgbob/src/enhance.rs
+++ b/svgbob/src/enhance.rs
@@ -82,27 +82,27 @@ impl<'g> Enhance for FocusChar<'g> {
consumed.push(top_right());
}
}
- // For diamon rectanle
+ // For diamond rectangle
// .
// '
if self.top_right().any(".,") {
- elm.push(line(c, &top_right().m()));
+ elm.push(dashed_line(c, &top_right().m()));
consumed.push(top_right());
}
// .
// '
if self.top_left().any(".,") {
- elm.push(line(c, &top_left().m()));
+ elm.push(dashed_line(c, &top_left().m()));
consumed.push(top_left());
}
// .'
if self.left().any(".,") {
- elm.push(line(c, &left().m()));
+ elm.push(dashed_line(c, &left().m()));
consumed.push(left());
}
// '.
if self.right().any(".,") {
- elm.push(line(c, &right().m()));
+ elm.push(dashed_line(c, &right().m()));
consumed.push(right());
}
} else if self.any(".,") {
diff --git a/svgbob/src/properties.rs b/svgbob/src/properties.rs
index 6c1b3f2..2d977b5 100644
--- a/svgbob/src/properties.rs
+++ b/svgbob/src/properties.rs
@@ -645,7 +645,7 @@ impl Properties for char {
}
///////////////////////////
//
- // ., dot and comma
+ // ., dot or period and comma
//
///////////////////////////
else if self.any(".,") {