mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-31 12:40:00 +00:00
Migration Aid
Provide a means for potentially affected users to test if new logic is in effect so that they can update code beforehand.
This commit is contained in:
@@ -35,6 +35,21 @@ class Html extends BaseWriter
|
||||
|
||||
private const DEFAULT_CELL_WIDTH_PIXELS = 56;
|
||||
|
||||
/**
|
||||
* Migration aid to tell if html tags will be treated as plaintext in comments.
|
||||
* if (
|
||||
* defined(
|
||||
* \PhpOffice\PhpSpreadsheet\Writer\Html::class
|
||||
* . '::COMMENT_HTML_TAGS_PLAINTEXT'
|
||||
* )
|
||||
* ) {
|
||||
* new logic with styling in TextRun elements
|
||||
* } else {
|
||||
* old logic with styling via Html tags
|
||||
* }.
|
||||
*/
|
||||
public const COMMENT_HTML_TAGS_PLAINTEXT = true;
|
||||
|
||||
/**
|
||||
* Spreadsheet object.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user