Skip to content

Commit a993707

Browse files
committed
refactor: rename "line returns" to "line breaks"
1 parent fe0f7b1 commit a993707

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

apps/website/blog/2021-06-29-create-blog-app-rnrh-III.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ Code samples are rendered by Docusaurus in a `<pre class="prism-code">` tag. We
671671
whole code block is rendered inside a `code` element with a `display: flex;
672672
flex-direction: column`. However, `code` is translated to a React Native `Text`
673673
since his element model is **textual**. To work around this issue, we can
674-
inject line returns after each `span` element with a CSS `token-line` class
674+
inject line breaks after each `span` element with a CSS `token-line` class
675675
which content does not end with a new line.
676676

677677

doc-tools/doc-pages/src/pages/PageConceptTRE.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ export default function PageConceptTRE() {
321321
<TNodeTransformDisplay
322322
html={source}
323323
snaphost={collapsingEngine.buildTTree(source).snapshot()}
324-
caption="Notice when comparing with the previous example, the line returns and extraneous spaces have been removed."
324+
caption="Notice when comparing with the previous example, the line breaks and extraneous spaces have been removed."
325325
/>
326326
</Section>
327327
</Chapter>

packages/render-html/src/__tests__/component.render-html.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ describe('RenderHTML', () => {
9696
);
9797
await findByText('\u200B');
9898
});
99-
it('should render <br> tags to line returns when followed by text', () => {
99+
it('should render <br> tags to line breaks when followed by text', () => {
100100
const { queryByText } = render(
101101
<RenderHTML
102102
source={{
@@ -108,7 +108,7 @@ describe('RenderHTML', () => {
108108
);
109109
expect(queryByText('\n')).toBeDefined();
110110
});
111-
it('should render <br> tags to line returns when the tag closes an inline formatting context', () => {
111+
it('should render <br> tags to line breaks when the tag closes an inline formatting context', () => {
112112
const { queryByText } = render(
113113
<RenderHTML
114114
source={{
@@ -683,7 +683,7 @@ describe('RenderHTML', () => {
683683
});
684684
});
685685
describe('regarding enableExperimentalBRCollapsing', () => {
686-
it('should render <br> tags to line returns when followed by text', () => {
686+
it('should render <br> tags to line breaks when followed by text', () => {
687687
const { queryByText } = render(
688688
<RenderHTML
689689
source={{

packages/render-html/src/__tests__/w3c.html.pre.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import renderer from 'react-test-renderer';
44
import { extractTextFromInstance } from './utils';
55

66
describe('RenderHTML component regarding <pre> tags behaviors', () => {
7-
it('preserves tabs and line returns', () => {
7+
it('preserves tabs and line breaks', () => {
88
const testRenderer = renderer.create(
99
<RenderHTML debug={false} source={{ html: '<pre>\t\n a</pre>' }} />
1010
);
1111
const renderedText = extractTextFromInstance(testRenderer.root);
1212
expect(renderedText).toEqual('\t\n a');
1313
});
14-
it('preserves indentation and line returns', () => {
14+
it('preserves indentation and line breaks', () => {
1515
const preContent = `
1616
function myJSFunction() {
1717
console.log("let's go");

0 commit comments

Comments
 (0)