Skip to content

API of math caption should be revised #987

@Ducasse

Description

@Ducasse

Here is what I forced to write in the rule checker.

checkMissingPeriodInMath: aMath

	| captionText |
	"clearly a problem in math caption"
	
	captionText := (aMath captionElements  collect: [ :each | each text ]).
	captionText ifEmpty: [ ^ self ]. 
	
	captionText trimRight last = $. ifFalse: [
			results add: (MicPeriodInCaptionResult new
					 micElement: aMath;
					 inFile: aMath fromFile;
					 codeShouldEndWithPeriod: codeShouldEndWithPeriod) ]

caption is defined as

caption

	^ (self arguments at: #caption ifAbsent: [ ^ 'No Caption' ]) printString

and we end up with anArray (....)

totally wrong

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions