Skip to content

empty lines added to the end of code <> blocks on exit #2344

@noseshimself

Description

@noseshimself

Steps to reproduce

  1. open .md file containing code blocks
  2. type something somewhere
  3. close it
  4. open it again

Expected behaviour

Code blocks look like before

Actual behaviour

An empty line may be added to the end of the code block.

Server configuration detail

Operating system: Linux 5.10.0-12-amd64 #1 SMP Debian 5.10.103-1 (2022-03-07) x86_64

Webserver: Apache/2.4.52 (Debian) (apache2handler)

Database: mysql 10.7.1

PHP version:

8.0.15
Modules loaded: Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, ftp, hash, iconv, json, mbstring, SPL, PDO, pdo_sqlite, session, posix, Reflection, standard, SimpleXML, Phar, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, apache2handler, apcu, bcmath, exif, gd, gmp, imagick, intl, ldap, memcached, pcntl, pdo_mysql, pdo_pgsql, redis, sodium, zip, Zend OPcache

Nextcloud version: 23.0.0 - 23.0.0.10

Updated from an older Nextcloud/ownCloud or fresh install: both

Where did you install Nextcloud from: unknown

Signing status

Array
(
[secsignid] => Array
(
[EXTRA_FILE] => Array
(
[screenshots/screenshot_onboarding.png] => Array
(
[expected] =>
[current] => 6b238ed855580bb32218f11bd275ea1a33a07aaf5b5477bb3cff79c7dfea6cb2d6f7661f7b16bbe26339ed3e057eadc935e83c134b300df4cc2dea15035edfbd
)

                [screenshots/screenshot_access_pass.png] => Array
                    (
                        [expected] => 
                        [current] => cdce3d7aa8105cf8453ecd9d197785b48798eeda286cd86d2fe2cdfa8b69e2ac7e2d4dcecbc273e4558b556e93ff93d44fd662b8eb8f34e34dd0b811f156d559
                    )

                [screenshots/screenshot_personal_settings.png] => Array
                    (
                        [expected] => 
                        [current] => 98ac27cc433c66fcdffc8e7192fa09956524f5dc08e3b222dd4009bb90680aca27fb51b5564ac09ebb76786796f3a6a72e9dcfae35689c87e1e5e4d1c00f036a
                    )

                [screenshots/screenshot_user_management.png] => Array
                    (
                        [expected] => 
                        [current] => faece1a28a7692c08676a72d8e1d49c7bf938ed044769e454d24b50a384bfc833937d08b60e2c8b66c14f9c8620f0bd5d0bcbaa8d501b3dede35e891a3c0d879
                    )

                [screenshots/screenshot_access_pass_thumb.png] => Array
                    (
                        [expected] => 
                        [current] => 914b2a7c4043ab7d4448247d89a69d08c089e9e5cc1a2a1ca278dacf6e7920fc9e625c0dfa92f84de404106c9f971a78f5f18cd96e5b43c2afcfce32827541e5
                    )

                [screenshots/screenshot_user_permissions.png] => Array
                    (
                        [expected] => 
                        [current] => acac3f15009247dca1237448e45bc1c7d5780282eddbd4d80ebc175d2492635f9f823c6294f075350e729cfb5ccccedf888d60bdf795c984a3cdd4e05d55d681
                    )

                [screenshots/screenshot_configuration.png] => Array
                    (
                        [expected] => 
                        [current] => 0d1d0af23a4442f500b0b3e27958fc86233673346c951c8ee8681ccab7fc9672ac0d89ac8b6a510348253537c288b954ea4d319ed0d6b652fd5c2464919727f1
                    )

                [docker-compose.yml] => Array
                    (
                        [expected] => 
                        [current] => f0595c25bc35d955ff9ac8835d84bc3ee815fcbbc6173f2984d0a39dee012dd0491b1eeffb12dd5cf28df2cdf01d4a54e1b90796459773c7716b0984d4caec2e
                    )

            )

    )

)

List of activated apps
Enabled:
 - accessibility: 1.9.0
 - activity: 2.15.0
 - admin_audit: 1.13.0
 - announcementcenter: 6.2.0
 - appointments: 1.12.3
 - apporder: 0.15.0
 - approval: 1.0.9
 - audioplayer: 3.3.0
 - bbb: 2.2.0
 - bookmarks: 10.3.1
 - breezedark: 23.2.1
 - bruteforcesettings: 2.4.0
 - calendar: 3.2.2
 - camerarawpreviews: 0.7.15
 - carnet: 0.24.4
 - cas: 0.2.7
 - cfg_share_links: 1.2.2
 - checksum: 1.1.3
 - circles: 23.0.0
 - cloud_federation_api: 1.6.0
 - cms_pico: 1.0.18
 - collectives: 1.0.0
 - comments: 1.13.0
 - contacts: 4.1.0
 - contactsinteraction: 1.4.0
 - cookbook: 0.9.11
 - cospend: 1.4.6
 - csp_editor: 1.0.0
 - customproperties: 2.0.4
 - dashboard: 7.3.0
 - dav: 1.21.0
 - deck: 1.6.1
 - dicomviewer: 1.2.3
 - drawio: 1.0.2
 - duplicatefinder: 0.0.13
 - electronicsignatures: 1.10.1
 - emlviewer: 1.0.1
 - epubreader: 1.4.7
 - event_update_notification: 1.5.0
 - external: 3.10.2
 - extract: 1.3.3
 - federatedfilesharing: 1.13.0
 - federation: 1.13.0
 - files: 1.18.0
 - files_accesscontrol: 1.13.0
 - files_automatedtagging: 1.13.0
 - files_bpm: 0.2.1
 - files_downloadactivity: 1.13.0
 - files_downloadlimit: 1.0.1
 - files_ebookreader: 0.0.1
 - files_external: 1.15.0
 - files_fulltextsearch: 23.0.1
 - files_fulltextsearch_tesseract: 22.0.0
 - files_linkeditor: 1.1.9
 - files_lock: 20.1.0
 - files_markdown: 2.3.6
 - files_mindmap: 0.0.26
 - files_pdfviewer: 2.4.0
 - files_readmemd: 1.2.2
 - files_retention: 1.12.0
 - files_rightclick: 1.2.0
 - files_sharing: 1.15.0
 - files_snapshots: 1.0.4
 - files_texteditor: 2.14.0
 - files_trashbin: 1.13.0
 - files_versions: 1.16.0
 - files_videoplayer: 1.12.0
 - files_zip: 1.0.1
 - fileslibreofficeedit: 1.0.4
 - firstrunwizard: 2.12.0
 - flow_notifications: 1.2.0
 - flowupload: 1.1.3
 - forms: 2.5.0
 - fulltextsearch: 23.0.0
 - fulltextsearch_elasticsearch: 23.0.0
 - gpxedit: 0.0.14
 - gpxpod: 4.3.0
 - group_default_quota: 0.1.4
 - groupfolders: 11.1.2
 - groupquota: 0.1.8
 - hsts: 0.9.0
 - imageconverter: 1.3.2
 - impersonate: 1.10.0
 - integration_dropbox: 1.0.4
 - integration_github: 1.0.2
 - integration_mastodon: 1.0.2
 - integration_openproject: 1.0.6
 - integration_reddit: 1.0.3
 - issuetemplate: 0.7.0
 - jitsi: 0.15.0
 - keeweb: 0.6.8
 - login_notes: 1.0.4
 - logreader: 2.8.0
 - lookup_server_connector: 1.11.0
 - mail: 1.11.7
 - maps: 0.1.10
 - mediadc: 0.1.9
 - messagevault: 1.0.0
 - metadata: 0.16.0
 - music: 1.5.1
 - ncdownloader: 0.9.16
 - news: 18.0.1
 - nextcloud_announcements: 1.12.0
 - notes: 4.3.1
 - notifications: 2.11.1
 - notify_push: 0.3.0
 - oauth2: 1.11.0
 - occweb: 0.1.0
 - ocdownloader: 1.8.0
 - oidc: 0.1.0
 - openotp_auth: 1.4.2
 - ownpad: 0.6.17
 - passman: 2.4.0
 - password_policy: 1.13.0
 - passwords_handbook: 2022.4.20
 - permissions_overwrite: 0.1.7
 - phonetrack: 0.7.0
 - photos: 1.5.0
 - polls: 3.6.1
 - previewgenerator: 4.0.0
 - privacy: 1.7.0
 - provisioning_api: 1.13.0
 - qownnotesapi: 21.12.0
 - quickaccesssorting: 1.1.3
 - quicknotes: 0.7.3
 - quota_warning: 1.14.0
 - rainloop: 7.2.5
 - recognize: 1.12.0
 - recommendations: 1.2.0
 - richdocuments: 5.0.3
 - richdocumentscode: 21.11.306
 - riotchat: 0.11.3
 - root_cache_cleaner: 0.1.2
 - scanner: 0.2.2
 - serverinfo: 1.13.0
 - settings: 1.5.0
 - sharebymail: 1.13.0
 - shareimporter: 1.0.6
 - sharelisting: 1.0.0
 - sharerenamer: 3.0.0
 - sharingpath: 0.4.4
 - shifts: 1.8.6
 - side_menu: 2.3.5
 - smb_test: 0.3.4
 - solid: 0.0.3
 - spreed: 13.0.5
 - support: 1.6.0
 - suspicious_login: 4.1.0
 - systemtags: 1.13.0
 - tables: 0.1.1
 - talk_matterbridge: 1.23.2
 - talked: 0.3.0
 - tasks: 0.14.4
 - text: 3.4.0
 - theming: 1.14.0
 - timemanager: 0.3.0
 - timetracker: 0.0.73
 - tvshownamer: 0.1.2
 - twofactor_admin: 3.2.0
 - twofactor_email: 2.3.0
 - twofactor_gateway: 0.19.0
 - twofactor_nextcloud_notification: 3.4.0
 - twofactor_totp: 6.2.0
 - twofactor_u2f: 6.3.0
 - twofactor_webauthn: 0.3.1
 - updatenotification: 1.13.0
 - user_status: 1.3.1
 - user_usage_report: 1.7.0
 - video_converter: 1.0.4
 - viewer: 1.7.0
 - w2g2: 3.3.8
 - weather: 1.7.6
 - weather_status: 1.3.0
 - webapppassword: 21.12.0
 - webhooks: 0.2.0
 - welcome: 1.0.1
 - workflow_media_converter: 1.3.6
 - workflow_ocr: 1.23.2
 - workflow_pdf_converter: 1.8.0
 - workflow_script: 1.8.0
 - workflowengine: 2.5.0
Disabled:
 - afterlogic
 - backup
 - checksum_api
 - encryption
 - group_everyone
 - integration_whiteboard
 - openotp_sign
 - registration
 - survey_client
 - user_ldap

Configuration (config/config.php)
{
    "defaultapp": "files",
    "htaccess.RewriteBase": "\/",
    "memcache.local": "\\OC\\Memcache\\APCu",
    "filelocking.enabled": "true",
    "memcache.locking": "OCMemcacheRedis",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 6379
    },
    "apps_paths": [
        {
            "path": "\/var\/www\/html\/apps",
            "url": "\/apps",
            "writable": false
        },
        {
            "path": "\/var\/www\/html\/custom_apps",
            "url": "\/custom_apps",
            "writable": true
        }
    ],
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "testcloud.bnc.net",
        "cloud.bnc.net"
    ],
    "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "share_folder": "\/Shared",
    "dbtype": "mysql",
    "version": "23.0.0.10",
    "overwrite.cli.url": "https:\/\/cloud.bnc.net",
    "overwriteprotocol": "https",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "simpleSignUpLink.shown": false,
    "default_phone_region": "DE",
    "maintenance": false,
    "app_install_overwrite": [
        "files_ebookreader",
        "checksum_api",
        "files_bpm",
        "occweb",
        "sharelisting",
        "w2g2",
        "files_readmemd",
        "emlviewer",
        "customproperties",
        "group_everyone",
        "flow_notifications",
        "integration_whiteboard",
        "issuetemplate"
    ],
    "mail_smtpmode": "smtp",
    "mail_smtpsecure": "tls",
    "mail_sendmailmode": "smtp",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauth": 1,
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "587",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "loglevel": 2,
    "mail_smtpauthtype": "LOGIN"
}

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption:

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

Client configuration

Browser: Chrome, Firefox, Safari

Operating system: Windows 10/11, Linux

Logs

Web server error log
Insert your web server log here 
Nextcloud log
Insert your Nextcloud log here
Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghigh

Type

No type

Projects

Status

☑️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions