
Large ligne of code are cut when the doc is formatted in PDF
Expected behavior
I think the line should not be cut, but instead the rest of the line that can not be shown on the screen must be shown on the next line.
Steps to reproduce
- write a code inside a md page like
c some code
My code:
#!/bin/bash
#Fonction de création d'un utilisateur avec 5 à 10 fichiers de 10 à 100Mo
createUser()
(
X=$(( 10 + $RANDOM % 31 ))
user="user$X"
if grep "$user" /etc/passwd > /dev/null;
then echo -e "L'utilisateur $user existe déja, un autre sera créé à la place."
else useradd $user --home /home/$user --create-home --shell /bin/bash > /dev/null;
echo -e "nL'utilisateur $user avec le mot de passe $user a été créé."
echo -e "$usern$user" | passwd $user 2> /dev/null;
fileNumber=$(( 5 + $RANDOM % 6 ))
for f in `seq 1 $fileNumber`
do
fileSize=$(( 20 + $RANDOM % 100 ))
fallocate -l $fileSizeM "/home/$user/fic$f"
if [ -f /home/$user/fic$f ]
then echo "Le fichier fic$f ($fileSize Mo) a bien été créé dans /home/$user"
createdFiles=$((createdFiles+1))
else echo "Le fichier fic$f n'a pas été créé"
fi
done
echo "$createdFiles/$fileNumber fichiers ont été créés dans /home/$user."
fi
)
while [ `grep -c "^user" /etc/passwd` != 10 ]
do
createUser
done
- export to pdf
- look at the code
Environment
- Version : Boostnote 0.11.11
- OS Version and name : Manjaro Linux
4.19.13-1-MANJARO

There is a $30.00 open bounty on this issue. Add more on Issuehunt.
Large ligne of code are cut when the doc is formatted in PDF
Expected behavior
I think the line should not be cut, but instead the rest of the line that can not be shown on the screen must be shown on the next line.
Steps to reproduce
c some codeMy code:
Environment
4.19.13-1-MANJARO