当前位置:网站首页>Ts:typera code fragment indentation display exception (resolved) -2022.7.24
Ts:typera code fragment indentation display exception (resolved) -2022.7.24
2022-07-25 22:05:00 【A lifetime ~ one】

Catalog
List of articles
1、 Problem phenomenon
typora Code snippet indentation and linux Why does the indent inside show different ?
- typora The code snippet in is indented as follows :
Logically speaking yaml The code in is indented 2 One of the , But what a strange display here , There are indents 2 individual , Some are not ……
# vm-node-exporter.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: node-exporter
namespace: kube-vm
spec:
selector:
matchLabels:
app: node-exporter
template:
metadata:
labels:
app: node-exporter
spec:
hostPID: true
hostIPC: true
hostNetwork: true # Notice that this is hostNetwork The way
nodeSelector:
kubernetes.io/os: linux
containers:
- name: node-exporter
image: prom/node-exporter:v1.3.1
args:
- --web.listen-address=$(HOSTIP):9111 # Here, modify the listening port to 9111
- --path.procfs=/host/proc
- --path.sysfs=/host/sys
- --path.rootfs=/host/root
- --no-collector.hwmon # Disable some unneeded collectors
- --no-collector.nfs
- --no-collector.nfsd
- --no-collector.nvme
- --no-collector.dmi
- --no-collector.arp
- --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/containerd/.+|/var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)
- --collector.filesystem.ignored-fs-types=^(autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)$
ports:
- containerPort: 9111
env:
- name: HOSTIP
valueFrom:
fieldRef:
fieldPath: status.hostIP
resources:
requests:
cpu: 150m
memory: 180Mi
limits:
cpu: 150m
memory: 180Mi
securityContext:
runAsNonRoot: true
runAsUser: 65534
volumeMounts:
- name: proc
mountPath: /host/proc
- name: sys
mountPath: /host/sys
- name: root
mountPath: /host/root
mountPropagation: HostToContainer
readOnly: true
tolerations: # Add tolerance
- operator: "Exists"
volumes:
- name: proc
hostPath:
path: /proc
- name: dev
hostPath:
path: /dev
- name: sys
hostPath:
path: /sys
- name: root
hostPath:
path: /


It's also true to check through the space 2 Characters , That's right, .
Is it because of the font problem here ??……
- But when typora Paste the code in linux Back inside , I found everything normal :
Are clearly indented 2 One of the :

- take typora Paste the code in sublime text The inside is also indented normally 2 One of the :

- Amount , Sure enough, it is related to the font setting of the theme :
I'm going to typora The theme changes back to the default github after , here , The indentation is normal .

- At present typora The configuration is as follows


2、 terms of settlement
- here , Modify the font of the current theme


3、 Verification effect
- The effect is as follows

Copy the code again to sublime text3 Observe the effect :

In line with expectations , The above problems have been solved .
About me
My blog theme :
- Beautiful layout , The language is refined ;
- Documents are manuals , Step details , Refuse to bury the pit , Provide source code ;
- My actual combat documents are tested successfully , If you have any questions during the actual operation , You can contact me at any time to help you solve the problem , Let's make progress together !
WeChat qr code
x2675263825 ( Willing to part with or use ), qq:2675263825.

WeChat official account
《 Cloud native architect actual combat 》

csdn
https://blog.csdn.net/weixin_39246554?spm=1010.2135.3001.5421

Blog
www.onlyyou520.com

You know
https://www.zhihu.com/people/foryouone

Language sparrow
https://www.yuque.com/books/share/34a34d43-b80d-47f7-972e-24a888a8fc5e?# 《 Cloud notes best practices 》


Last
Okay , That's all for this time , Thank you for reading , Finally, I wish you all a happy life , Every day is meaningful , See you next time !

边栏推荐
- 【汇编语言01】基础知识
- [test development methodology] experience of test development platform PK - choice
- Sofa weekly | open source person - Niu Xuewei, QA this week, contributor this week
- [MAIXPY]kpu: load error:2005, ERR_ READ_ File: read file failed problem solving
- New maixhub deployment (v831 and k210)
- mouseEvent事件——mouse坐标描述——focus事件——input事件——节流(thorttle)——mouseWheel(滚轮事件)
- C语言:随机生成数+冒泡排序
- sql语句练习题整理
- I/o case practice
- [dinner talk] those things that seem to be for the sake of the company but are actually incomprehensible (2: soft quality "eye edge" during interview)
猜你喜欢

Bitcoin.com:USDD代表了真正去中心化稳定币

kubernetes之VictoriaMetrics单节点

Lichuang EDA -- creation of devices 01 resistance (II)

Open source RSS subscriber freshrss

『Skywalking』. Net core fast access distributed link tracking platform

突破性思维在测试工作中的应用
![[hand torn STL] unordered_ set、unordered_ Map (encapsulated with hash table)](/img/33/08f7b72ce99e07821a1f4b6e594e13.png)
[hand torn STL] unordered_ set、unordered_ Map (encapsulated with hash table)

The automation testing post spent 20K recruiting, but in the end, there was no suitable one. Both fresh students are better than them

Jenkins+svn configuration

JMeter websocket interface test
随机推荐
JSP nine built-in objects
golang : MVC之models
Whether the five distribution methods will produce internal fragments and external fragments
这次龙蜥展区玩的新花样,看看是谁的 DNA 动了?
【GO基础02】第一个程序
Open source RSS subscriber freshrss
Why do independent sellers like to do e-mail marketing? The original conversion rate can be improved so much!
How to configure and use rocksdb in the flinksql environment
2年功能测试,却感觉自己什么都不会,2022我该何去何从?
sql语句练习题整理
Tesseract OCR初探
还不懂mock测试?一篇文章带你熟悉mock
New maixhub deployment (v831 and k210)
8000 word super detailed custom structure type
Composition of dog food
字节跳动技术面都过了,结果还是被刷了,问HR原因竟是。。。
2 lines of code to generate a solid desktop background
C语言:随机生成数+冒泡排序
Golang: MVC models
After 2 years of functional testing, I feel like I can't do anything. Where should I go in 2022?