feat: parse entire file instead of hunting for verbtain

This commit is contained in:
Jonathan Kelley committed 2023-01-13 16:46:34 -08:00
1 parent bf559a6d06
commit ac6035cb2a
14 files changed
+429 -81

No files matched your search

+2 -2
View File
@@ -40,7 +40,7 @@ div {
}
*/
impl Writer {
impl Writer<'_> {
pub fn write_element(&mut self, el: &Element) -> Result {
let Element {
name,
@@ -276,7 +276,7 @@ impl Writer {
let start = location.start();
let line_start = start.line - 1;
let this_line = self.src[line_start].as_str();
let this_line = self.src[line_start];
let beginning = if this_line.len() > start.column {
this_line[..start.column].trim()