When using the pre tag, add a space in the first paragraph, then there will be two blanks in the second line, so how to make them all have only one blank

wrong format

I hope it is the following format. How can I change it?

    

    MACnpmnpm
    
    

    MACnpmnpm
    npm install vue-router

    Windowsnpmcnpm
    cnpm install vue-router -save
    cnpm install vuex --save

    npm install  --registry=https://registry.npm.taobao.org common-helper-es6
    npm install  --registry=https://registry.npm.taobao.org seneca --save-dev
    npm install -g nrm --registry=https://registry.npm.taobao.org

    
    
        let test = arg => { }
        console.log(arg);
    

Oct.09,2021

pre add a style white-space:pre-line try

< hr >

ps: seems to default to the top

.
Menu