プロジェクト

全般

プロフィール

Vote #80959

完了

Highlighted code with 'diff' format converts tabs to spaces, which breaks IDEs

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
0
issue_org_id:
33707
author_id:
404068
assigned_to_id:
0
comments:
3
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
160
ステータス-->[Closed]

説明

If I paste some code like a @diff@ (patch format), then tabs are replaced by 4 spaces:


Index: web/SomeJs.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- web/SomeJs.js   (revision a772b73079dfedeaafa2a941b33b4bb03fc77b2a)
+++ web/SomeJs.js   (date 1593706024927)
@@ -7,13 +7,33 @@
 };
 
 SomeJs.prototype.isMobile = function () {
-   return /Foo/.test("a");
Please compare with raw format, where I got some @@ chars originally (edit the description to see that the tabs are still there):
Index: web/SomeJs.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- web/SomeJs.js(revision a772b73079dfedeaafa2a941b33b4bb03fc77b2a)
+++ web/SomeJs.js(date 1593706024927)
@@ -7,13 +7,33 @@
 };
 
 SomeJs.prototype.isMobile = function () {
-return /Foo/.test("a");

This is annoying cause copying the @diff@ from the visual view does not work. I have to copy from the @Edit@ view and apply the patch in my IDE this way.


journals

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I found that the same problem has already been reported as #28793. Closing this issue as a duplicate of it.

Thank you for reporting this issue.
--------------------------------------------------------------------------------


related_issues

duplicates,Confirmed,28793,Redmine replaces tabs with spaces in code blocks

Admin Redmine さんが約2年前に更新

  • カテゴリText formatting_26 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0