feat: parse entire file instead of hunting for verbtain
This commit is contained in:
1 parent
bf559a6d06
commit
ac6035cb2a
14 files changed
+429
-81
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user