You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Indentation is messed up when using --pager flag
Setup
OS: WSL2 Ubuntu 24.04 - Windows 11
Shell: fish
Terminal Emulator: Windows Terminal
Terminal Multiplexer: tmux
Locale: UTF-8
To Reproduce
Steps to reproduce the behavior:
create a file that has lines that contain varying levels of indentation, e.g. a file that contains golang code. running glow ./filename.go --pager produces different indentation levels for lines that are supposed to be at the same indentation level.
Source Code
below is the content of the file I used:
package main
import (
"fmt""strconv"
)
funcmain() {
// Example with an integernum:=42str:=strconv.Itoa(num) // Convert integer to stringfmt.Println("The number as a string is: \n"+str+"\n")
// Example with a floatfloatNum:=3.14strFloat:=strconv.FormatFloat(floatNum, 'f', -1, 64) // Convert float to stringfmt.Println("The float as a string is: \n"+strFloat+"\n")
}
Expected behavior
Using the --pager flag should not produced inconsistent indentations, and it should just add a pager to the same content that one would have got if they didn't use the -pager flag.
Screenshots
Without --pager flag:
With --pager flag:
The text was updated successfully, but these errors were encountered:
Describe the bug
Indentation is messed up when using
--pager
flagSetup
To Reproduce
Steps to reproduce the behavior:
create a file that has lines that contain varying levels of indentation, e.g. a file that contains golang code. running
glow ./filename.go --pager
produces different indentation levels for lines that are supposed to be at the same indentation level.Source Code
below is the content of the file I used:
Expected behavior
Using the
--pager
flag should not produced inconsistent indentations, and it should just add a pager to the same content that one would have got if they didn't use the-pager
flag.Screenshots
Without
--pager
flag:With
--pager
flag:The text was updated successfully, but these errors were encountered: