1 Answer
- Newest
- Most votes
- Most comments
1
It's possible that the issue you're experiencing is related to the way the text is being copied and pasted. When you copy and paste text from the CodeCommit console, it's possible that extra formatting is being included that is causing the additional blank lines to appear.
Here are a few things you can try to resolve the issue:
- Use a different text editor to copy and paste the text. Sometimes, different text editors will include different types of formatting when copying and pasting text, so using a different editor can help remove any unwanted formatting.
- Remove any formatting from the text before pasting it into CodeCommit. You can do this by copying the text into a plain text editor (such as Notepad on Windows or TextEdit on Mac), which will remove any formatting. Then, you can copy the plain text and paste it into CodeCommit.
- Use the AWS CLI to upload the file to CodeCommit. Instead of copying and pasting the text into the console, you can use the
aws codecommit
command-line interface to upload the file directly to CodeCommit. This can help avoid any formatting issues that may be introduced when copying and pasting text.
answered 2 years ago
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 4 years ago
I'm copying directly from the CodeCommit console to Notepad (it also happens when I copy from CodeCommit to another CodeCommit file or to EditPad Lite). The question is why CodeCommit is inserting the new format, which is what doesn't make sense to me.