Skip to content

diffのシンタックスハイライトで、余分な改行が1行入る #130

@arisa-fukuzaki

Description

@arisa-fukuzaki

起こっている現象

  • diffシンタックスハイライトを使用した際に、余分な改行が1行上に入る

現象が起こった時の記法

// diff jsx:src/App.js で指定

import React, { useState } from 'react';
import './App.css';

function App() {
  const [count, setCount] = useState(0);

  return (
    <div className="App">
-      HEY👋
+      <h1>Counter App 🧮</h1>
+      <button>
+        +
+      </button>
+      <h3>{count} times clicked!🖱</h3>
    </div>
  );
}

export default App;

反映結果

img

試したこと

  • +と-の記述入れ替え
  • 前後の余白チェック

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug不具合の修正

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions