当前位置:网站首页>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 !

边栏推荐
猜你喜欢

【饭谈】那些看似为公司着想,实际却让人无法理解的事(二:面试时的软素质“眼缘”)

虚拟内存与磁盘

JMeter websocket interface test

关于接口测试你想知道的都在这儿了

All you want to know about interface testing is here

Guiding principles of information security construction

What have I experienced to become a harder tester than development?

Why do independent sellers like to do e-mail marketing? The original conversion rate can be improved so much!

Basic knowledge in the project

核电站在席卷欧洲的热浪中努力保持安全工作
随机推荐
在进行自动化测试,遇到验证码的问题,怎么办?
别投了,软件测试岗位饱和了...
C language left value and right value description [easy to understand]
JS timer and swiper plug-in
[go basics 02] the first procedure
[MAIXPY]kpu: load error:2005, ERR_ READ_ File: read file failed problem solving
Virtual memory and disk
什么是分区分桶?
Redis为何选择单线程?
如何实现一个App应用程序,限制用户时间使用?
Redis memory elimination mechanism?
How to use RS485 half duplex chip correctly
开户就可以购买收益在百分之六以上的理财产品了吗
2 lines of code to generate a solid desktop background
JMeter websocket接口测试
[leetcode ladder] linked list · 021 merge two ordered linked lists
The automation testing post spent 20K recruiting, but in the end, there was no suitable one. Both fresh students are better than them
Jmeter--- set proxy recording request
数据库进阶·如何针对所有用户数据中没有的数据去加入随机的数据-蜻蜓Q系统用户没有头像如何加入头像数据-优雅草科技kir
Basic knowledge in the project