Cloud Firestore 是否使用换行符 字符(多行)保存字符串? [英] Does Cloud Firestore save strings with newline characters (multiline)?

查看:23
本文介绍了Cloud Firestore 是否使用换行符 字符(多行)保存字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

显然 Cloud Firestore 控制台不会在字符串中显示换行符.有没有办法检查它们?

Apparently Cloud Firestore console does not display newline characters inside strings. Is there a way to inspect them?

保存的这个字符串实际上是:

问题

我能否确定换行符在那里,即使它们在 Firestore 控制台上不可见?

Can I be sure that the newlines are there, even though they're not visible on the Firestore Console?

推荐答案

字符串未经修改地存储,但 Firestore 控制台的各个部分以不同的方式显示换行符.另请参阅我之前关于 Firebase Firestore 新行命令 的回答以及 Doug 的回答:换行命令 ( ) 不适用于 Firebase Firestore数据库字符串.

Strings are stored unmodified, but various parts of the Firestore console show the newline character in different ways. Also see my previous answer on Firebase Firestore new line command and Doug's answer here: New Line Command ( ) Not Working With Firebase Firestore Database Strings.

由于该行为让您感到困惑,请提交错误报告.但请放心:您的换行符已正确存储和读取.

Since the behavior is confusing to you, please file a bug report. But rest assured: your newline characters are stored and read correctly.

这篇关于Cloud Firestore 是否使用换行符 字符(多行)保存字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆