[PR #239] [MERGED] allow multiline text using three double-quotes #15328

Closed
opened 2026-04-16 04:55:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/239
Author: @pdevine
Created: 7/29/2023
Status: Merged
Merged: 7/29/2023
Merged by: @pdevine

Base: mainHead: multiline


📝 Commits (1)

  • c67f332 allow multiline text using three double-quotes

📊 Changes

1 file changed (+19 additions, -0 deletions)

View changed files

📝 cmd/cmd.go (+19 -0)

📄 Description

This change will allow you to start a multi-line string using three double quotes. It looks something like:

>>> """What
... do you think
... about multi-line
... strings?
... """

To use a multi-line string, you have to begin the sentence with the three double quotes. To end it, you just have to put the three double quotes at the end of a line (or on a line by itself).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/239 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 7/29/2023 **Status:** ✅ Merged **Merged:** 7/29/2023 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `multiline` --- ### 📝 Commits (1) - [`c67f332`](https://github.com/ollama/ollama/commit/c67f33284b7ad41692d97491c96d347e19e8f794) allow multiline text using three double-quotes ### 📊 Changes **1 file changed** (+19 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+19 -0) </details> ### 📄 Description This change will allow you to start a multi-line string using three double quotes. It looks something like: ``` >>> """What ... do you think ... about multi-line ... strings? ... """ ``` To use a multi-line string, you have to begin the sentence with the three double quotes. To end it, you just have to put the three double quotes at the end of a line (or on a line by itself). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 04:55:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#15328